Skip to content

Declaring a const that refers to the current image in the Modal window #49

Answered by KAJdev
iamevandrake asked this question in Q&A
Discussion options

You must be logged in to vote

We use zustand for all global state management, so while this value I don't believe is technically exposed since no part of the UI depends on it except for the modal component itself, all you would need to do is define a hook in Generation.Images.Modal that returns the value if you needed it for some reason.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@iamevandrake
Comment options

@KAJdev
Comment options

@iamevandrake
Comment options

Answer selected by iamevandrake
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