Replies: 2 comments
-
Hello, will check! |
Beta Was this translation helpful? Give feedback.
-
Hi @ojaylu, Thank you for bringing this issue to my attention. I’ve taken a close look at the problem, and I’d like to explain what’s happening and why using Understanding the Issue:In React, when you define a component, like in your example with the const source = [];
const columns = [];
const [counter, setCounter] = useState(0);
<RevoGrid columns={columns} source={source} /> When you call Why
|
Beta Was this translation helpful? Give feedback.
-
Describe the issue
After rerendering in React, the sorted data becomes glitchy.
Note: But using
useRef
on the columns was able to solve the issue. Not sure why though.https://codesandbox.io/p/sandbox/react-revogrid-resize-forked-3wrvd4
To Reproduce
Sort the column so that rows are sorted in a different order, then click 'Cause Rerender'.
https://codesandbox.io/p/sandbox/react-revogrid-resize-forked-5dhzc3
Thanks
Screen.Recording.2024-08-31.at.1.04.22.AM.mov
Beta Was this translation helpful? Give feedback.
All reactions