Skip to content

Way to get molecules imperatively #55

Answered by loganvolkers
alexlag asked this question in Q&A
Discussion options

You must be logged in to vote

That will work, but keep in mind that calling get on the injector is not the same as calling use.

Using useMolecule is still recommended for most cases since it handles the subscription lifecycle for you automatically.

Replies: 1 comment

Comment options

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