`createResource` for Create and Update Requests?

I'm using createResource to fetch data displayed in a form. When a user modifies the form I want to update the resource using a PUT HTTP request. If I want to trigger Suspense, then should I wrap the PUT in another createResource call?
1 Reply
jrainearwills
jrainearwillsOP2mo ago
I ask because i want to trigger Suspense during an update. I also don't want to update and refetch if i don't have to. ultimately, i think that a way to toggle suspense manually would be great, perhaps via SuspenseContext.
Want results from more Discord servers?
Add your server