Skip to content
Discussion options

You must be logged in to vote
  1. Is it recommended to create a custom hook to handle optimistic updates with use_resource?

Yes, that sounds like a reasonable approach. You could use use_resource for the asynchronous request and use_memo for the synchronous optimistic update

  1. Are there any existing libraries or built-in features in use_resource that help with optimistic updates

I don't know of any, but if you build one, you should add it to dioxus awesome 🙂

Replies: 1 comment 1 reply

Comment options

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

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