-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
I’m using the “old” way of registering onload / onunload event handlers to initialize a component store (through emit(‘store:event’)).
This is not directly supported by Choo anymore, but is certainly possible by using some other libraries or native functions.
For example, I have a parameterized route, and based on the parameter I need to fetch some data to show. Likewise, when the user navigates somewhere else, I want to clear the store state to avoid showing “old” information or flickering when the user navigates to the same route again later.
I’d love to see docs describing the recommended way of doing this.
Metadata
Metadata
Assignees
Labels
No labels