Skip to content
Discussion options

You must be logged in to vote

So I tried out this version and the state updates work exactly as desired! Remove seems to work fine as well

However, Add Item does not with the example as-written.

Simply adding add_item.version().get() and remove_item.version().get() to the statuses Resource resolves it. I think because of the item_rows match statement and the looking up one resource in another, they both have to stay in sync.

So this is fine and should work for my case, I'm going to try integrating it today - it does beg the question, is there any way to prevent item_rows from running twice? I tried using a Memo - but it considers it a warning, reading Resource outside of Suspense. I don't think it's particularly egreg…

Replies: 3 comments 7 replies

Comment options

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

gbj Jun 3, 2025
Maintainer

@lukexor
Comment options

@gbj
Comment options

gbj Jun 3, 2025
Maintainer

Comment options

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

Answer selected by lukexor
Comment options

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

@gbj
Comment options

gbj Jun 4, 2025
Maintainer

@lukexor
Comment options

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