You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current domain-related APIs is a hard to parse by AST-awared plugins. It leads to some problems and races with other tools (e.g., #580, #482, #204). But, effector-react uses the different approach and doesn't have this issue.
I propose to add the new optional parameter to all creator-functions.
// old approachconstdomain=createDomain()const$domainStore=domain.createStore(null)// new approachconstdomain=createDomain()const$domainStore=createStore(null,{ domain });
In next major releases, we can deprecate domain.create*-calls.
What do you think, folks?
The text was updated successfully, but these errors were encountered:
Proposal
Current
domain
-related APIs is a hard to parse by AST-awared plugins. It leads to some problems and races with other tools (e.g., #580, #482, #204). But,effector-react
uses the different approach and doesn't have this issue.I propose to add the new optional parameter to all creator-functions.
In next major releases, we can deprecate
domain.create*
-calls.What do you think, folks?
The text was updated successfully, but these errors were encountered: