Skip to content
Discussion options

You must be logged in to vote

I don't see a reason to use Suspense or Suspend in this example: Suspense is used for reading data from resources, which you are not doing.

One reason the UI is not updating when the store data changes could be that you are explicitly untracking it:

let uses_list = &users_store.read_untracked().users;
// ...
if users_store.read_untracked().users.len() == 0 {

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tqq1994516
Comment options

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