JsCommunity / JsCommunity/reaclette

Improve inheritance model

Open
#12 2 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.