-
-
Notifications
You must be signed in to change notification settings - Fork 40
Use $getId() as wire:key instead of rand #155
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
Conversation
- keeps tree open when using as filter with live()
@neverything - this is similar to my PR #154 which uses a specific manageable treeKey and also adds the current url to the spa mode check. hit the same issue you did (plus the spa check issue) |
Wouldnt this also cause problems with reactive / live? A while back i tried this and ran into problems like that. |
@CodeWithDennis so far not, I'm using it with @mgkimsal I like that approach. It would be cool if the default was still |
Yes! Lets do that to make sure we don't break anything! (Default rand until we find something better) @neverything |
@neverything - lemme look Apologies for delay. I made a small change in 'setup' to add a 'rand' call as a suffix. Does that do what you were thinking of? Would like to use this and keep the 'url()->current()' call in the spa() call check as well. This is in #154 |
Let me know when its ready to be checked, appreciate the help here guys. @mgkimsal @neverything |
We ran into an issue when we were using the field for table filters with
live()
that the tree list kept closing after a single checkbox was clicked.This PR changes
wire:key="{{ rand() }}"
towire:key="{{ $getId() }}"