JsCommunity / JsCommunity/reaclette
Improve inheritance model
Open
Nobody has claimed this yet.
enhancement
help wanted
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Issue with current API:
- implicit state/effects dependencies
- a component placed between two components sharing state/effects will shadow them
- cumbersome local use:
provideState(injectState(Component))
I think we should consider departing completely from the implicit inheritance API and favor a local (with explicit inheritance) API.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the current inheritance API around provideState and injectState, focusing on implicit state/effects dependencies and shadowing between components. Compare those behaviors with the proposed local API and determine how explicit inheritance should work. Done means the API direction and handling of the listed cases are defined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Refactor
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100