Skip to content
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

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update readme
tamb committed Aug 24, 2019
commit 4e5113fa77cdad1b829816c6f170a13b9520e801
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -132,14 +132,21 @@ content into `selector` element.
```
(page:Page) -> void
```
Handle loading start.
Handle initial loading start of content.

### `Options.onReady()`
```
(page:Page) -> void
```
Handle loading finish.


### `Options.onMounting()`
```
(page:Page) -> void
```
Handle _all_ times content is being mounted onto the DOM.

### `Options.fromError()`
```
(error:Error) -> {title, content}