Skip to content

when I get data from another store in one store, it is not the latest data #1921

Closed Answered by dbritto-dev
Ali-ovo asked this question in Bug report
Discussion options

You must be logged in to vote

thank you for your reply, but this does not work,

I can't get the latest data using getInputValue , InputValue cannot get the latest data

since it is allowed to access the data of another store through one store, but it is wrong now

Yeah, that's expected because getState is not reactive. If you want the latest you should get it from useInputStore if you want to split your store in multiple states you can use slices pattern

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Ali-ovo
Comment options

@dbritto-dev
Comment options

Answer selected by dbritto-dev
@Ali-ovo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants