-
-
Notifications
You must be signed in to change notification settings - Fork 179
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
Regression b/w 2.18.0 and 2.20.20 - material-react-table seems to lose state? #1086
Comments
I'm not sure I understand the context here. The behavior you describe is a runtime issue, but the issue the repro describes is a compiler issue? The repro is related to this google/closure-compiler#3639. |
Thanks for coming back Thomas and sorry for the confusion - the issue with the accented characters in the closure compiler was sorted by me and JordiBC and is just about commenting the js file with all the accents. The real issue is that the table behaviour changed with 2.20.20 and is broken, rows can't be collapsed once they're expanded. All works well with 2.18.0. |
And to someone that has never used react-table before and isn't familiar with what it is supposed to do: What am I supposed to do?
I can't make sense of this. What does collapse a line item mean? All I see is some table rows? |
I've narrowed it down to release 2.19.1 and later (still not working in 2.21). 2.19.0 works well. So from the changelog: 2.19.1 - 2022-06-01 Does that help? Realise it's very untractable problem given lack of apparent errors / stacktrace |
Thanks for tracking that down. I guess 49fb078 is the cause. It bumped the default "polyfill" level from I can't say why this is a problem. Usually polyfills break stuff and don't fix things. There is far too much code in these npm packages to have any hope of tracking the issue down further. So, I'll have to leave it at that. I don't even have a guess what the actual issue could be. |
Thank you! Can confirm all works with 2.21 with the |
Hello,
weird bug documented here:
https://clojurians.zulipchat.com/#narrow/stream/151762-clojurescript/topic/material-react-table.20behaviour/near/325886492
with a very helpful repo from JordiBC to reproduce:
https://gitlab.com/jordibc/test-react-table
You can't collapse a line item that's been expanded before (though super collapse or expand work) in shadow-cljs 2.20.20, whereas 2.18.0 works. No errors in the console. I've played around with using my own react effects and hooks, and I have a hunch that the state is lost, or that the table is re-rendered with initial null state, as the user interacts with it. There are other similarly weird behaviours (filtering a grouped table loses the filter on expand, etc.). Very odd.
Thank you!
The text was updated successfully, but these errors were encountered: