[V8]: initialState #4988
Unanswered
simplecommerce
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was wondering if its normal that the
initialState
value changes.I did something like the following.
And I did
initialState: { ...initialState.current }
to my table instance.When I
console.log(tableInstance.initialState)
, I can see the value, but if I apply filters to my table and check the initialState, it has changed to include the column filters, is this normal?I even passed the same initialState as an option in the
meta
in order to pull that information, and for some strange reason, it has the changes also when I log it.But if I remove
useRef
and I just use a regular variable and pass it to the meta, it works, but the initialState instance has the changes.I hope I am being clear in my description of my issue.
Any help/hint is appreciated.
Beta Was this translation helpful? Give feedback.
All reactions