Replies: 2 comments 2 replies
-
Thanks for the idea. Please check this: #3741 (comment)
|
Beta Was this translation helpful? Give feedback.
1 reply
-
@PCOffline how would this work generically, e.g. in your PoC |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a proposal for an opt-in behaviour that introduces better type-safety when injecting stores.
The type-safety is improved in two ways:
inject
takes a component as an argument. This component could have inferred prop types based on the stores injected. (e.g. ifStore1
was injected, then we know that the props haveStore1
)I will emphasise this behaviour is opt-in, so it's not a breaking-change.
Here's a POC
Beta Was this translation helpful? Give feedback.
All reactions