Skip to content

Access multiple stores with their name as string #1743

Discussion options

You must be logged in to vote

you need object.store to be of type'useStore1' | 'useStore2' | 'useStore3' (instead of just string) for TS to figure out the type

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kerbilg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants