-
-
Notifications
You must be signed in to change notification settings - Fork 260
Closed
Labels
RFCRequest for CommentsRequest for Commentseffector-reacteffector-react packageeffector-react package
Description
Proposal
useUnit from effector-react tries to find scope in the context and automatically choose correct mode:
scope-full — binds events/effects to scope, reads store's values from scopescope-less — returns events/effects as is, reads global store's values
Add optional parameter forceScope to imitate behaviour of current useUnit from effector-react/scope, throws error in scope-less case.
Use case
Merge two packages and simplify scope-full cases in applications — SSR and tests.
Metadata
Metadata
Assignees
Labels
RFCRequest for CommentsRequest for Commentseffector-reacteffector-react packageeffector-react package