You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have two components, a modal and a table component (MUI 5 + react-table). I update the server state from the modal, so eventually a new row is added to the table. However, when I try to select the row immediately after updating the server state (even with an optimistic update), a racing condition occurs and I get an exception from the react-table hook.
This is where I update the state, in a modal component.
Update the table state and then try to select the row.
Expected behavior
The newly created row should be rendered and selected.
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform
macOS
react-table version
v7.6.3
TypeScript version
v4.5.4
Additional context
No response
Terms & Code of Conduct
I agree to follow this project's Code of Conduct
I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
This discussion was converted from issue #3863 on May 03, 2022 19:23.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
I have two components, a modal and a table component (MUI 5 +
react-table
). I update the server state from the modal, so eventually a new row is added to the table. However, when I try to select the row immediately after updating the server state (even with an optimistic update), a racing condition occurs and I get an exception from thereact-table
hook.This is where I update the state, in a modal component.
Then, in the table component I do this:
Your minimal, reproducible example
Pasted some code above.
Steps to reproduce
Update the table state and then try to select the row.
Expected behavior
The newly created row should be rendered and selected.
How often does this bug happen?
No response
Screenshots or Videos
No response
Platform
macOS
react-table version
v7.6.3
TypeScript version
v4.5.4
Additional context
No response
Terms & Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions