-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[EuiInMemoryTable] getDerivedStateFromProps
can incorrectly block updates
#3478
Labels
Comments
@thompsongl I'd like to work on this issue. |
@thompsongl @chandlerprall Will this work? |
That middle block, returning an object with only |
Yep, if you'd like to open a PR we can continue to work in there |
Okay on it |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
getDerivedStateFromProps
method is set up with a false prioritization of updates. For instance, if both theitems
reference and thesearch
reference change, only theitems
update propagates to new component state simply because the update logic occurs first.eui/src/components/basic_table/in_memory_table.tsx
Lines 244 to 290 in eab1f14
Ideal case is to convert EuiInMemoryTable to a functional component and take advantage of hooks. Simpler case is to not
return
until each update logic check has finished.The text was updated successfully, but these errors were encountered: