-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create onMounting hook #6
Conversation
Just have reviewed the PR. Currently it has conflicts. Could you clean it up and remove anything not related to the changed behavior itself? |
onLoading(url) | ||
} | ||
|
||
function onClick (e) { | ||
if (e.target.nodeName !== 'A') { | ||
if (e.target.nodeName !== 'A' && !e.target.dataset.pillIgnore) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be removed, it has already landed in another PR.
@@ -162,6 +169,11 @@ will be served by browser. | |||
|
|||
Determine wether previuosly loaded page should be loaded from server. | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It conflicts with already existing PR.
"rollup": "^1.7.4", | ||
"serve": "^10.1.2" | ||
}, | ||
"scripts": { | ||
"start": "serve -l 8080 -n example", | ||
"start": "npm run build && node copy-files.js && serve -l 8080 -n example", | ||
"clean": "rm -rf dist", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presented in PR #10
@@ -0,0 +1,3 @@ | |||
const copy = require('copy'); | |||
|
|||
copy('dist/*.js', 'example', ()=> console.log('copied pill.js build into example')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This part should be removed. It's presented in PR #10.
<p> | ||
<a name="anchor"></a> <span>Anchor</span> <a href="/pages/a">Page A</a> | ||
</p> | ||
</main> | ||
</div> | ||
<!-- PAGE CONTENT END --> | ||
<script src='/site.js' type='module'></script> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presented in PR #9
</div> | ||
<!-- PAGE CONTENT END --> | ||
<script src='/site.js' type='module'></script> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presented in PR #9
</div> | ||
<!-- PAGE CONTENT END --> | ||
<script src='/site.js' type='module'></script> | ||
</body> | ||
</html> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Presented in PR #9
@@ -1,4 +1,4 @@ | |||
import pill from '/pill.js' | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Conflicts with PR #9
@rumkin Question: Should this be But I feel it should be |
@tamb Let's implement only |
This hook fires before every content change. This way we can clean up any assets we may want to clean up before content changes.