Skip to content

Is it possible to store a React reference inside the Store? #1140

Answered by dai-shi
ZhengRui asked this question in Q&A
Discussion options

You must be logged in to vote

Essentially, it's just a JS variable, so you can store anything.
I'm not sure if storing refs globally can go wrong, in terms of its usage.

Replies: 6 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by ZhengRui
Comment options

You must be logged in to vote
1 reply
@dai-shi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@ZhengRui
Comment options

@dannobytes
Comment options

@dbritto-dev
Comment options

@dbritto-dev
Comment options

@C-o-d-e-C-o-w-b-o-y
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
8 participants
Converted from issue

This discussion was converted from issue #1139 on July 26, 2022 11:29.