You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: