Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redux hooks support #107

Open
Tracked by #18
MajorLift opened this issue Dec 27, 2021 · 0 comments
Open
Tracked by #18

Redux hooks support #107

MajorLift opened this issue Dec 27, 2021 · 0 comments

Comments

@MajorLift
Copy link

MajorLift commented Dec 27, 2021

Is your feature request related to a problem? Please describe.

  • Current "Connected to Redux Store" icon implementation only detects connect() function calls, and does not recognize redux hooks.
  • Redux hooks have superseded connect API as the default approach recommended by the react-redux library.

Describe the solution you'd like

  • Display redux store icon for files that use redux hooks:
    1. Check for redux hooks imports.
    2. Check for redux hooks invocation(s).
    3. Check for selector/dispatch/store instance invocation(s). (optional?)

Describe alternatives you've considered
N/A

Additional context

  • Example screenshot:
    Redux store data is being extracted into the component, and redux actions are being dispatched to store, but redux store icon doesn't show up on Sapling tree.

example screenshot

I'd be willing to take a stab at this if it doesn't interfere with core team's plans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant