Next.js Discord

Discord Forum

State updates in child cause the parent's Suspense loading UI to render

Unanswered
Abu Zain posted this in #help-forum
Open in Discord
I am new to React 18. I have a table fetched in a parent component called PropertyTableWrapper. I'm using Suspense to display loading skeletons while fetching the table. The issue arises when I have a column named 'delete.' When a user clicks on this delete button, I call the delete action to remove the item and track the deleting state. However, when I update the state of the delete action, React displays the table loading skeletons instead of showing the loading state of the delete button

0 Replies