Show how to make components
- Dominant language
- JavaScript
- Stars
- 46
- Forks
- 25
- PR merge metrics
- No merged PRs in 30d
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.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named. Start by reviewing the existing Choo website documentation and the current component, store, and routing entry points; done means documenting the recommended approach for parameterized-route data loading and clearing store state on navigation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100