#[Session] doesn't (can't?) work consistently using wire:navigate.hover #8444
Unanswered
mauricekindermann
asked this question in
5. Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Livewire version
v3.4.12
Laravel version
v11.7.0
Which PHP version are you using?
PHP 8.3
Steps To Reproduce
So I just tried storing cateogry filter params using #[Session].
It works fine, except for pre-fetched pages using wire:navigate.hover. It's easy enough to reproduce:
Logically I get it, the session wasn't set when you prefetched the page. The only solution I can come up with is to stop using the hover feature. Unless there is some way to 'bust the cache' of pre-fetched data (ie - prefetch everytime you hover, not just the first time).
Anyone run into this before? Any ideas or creative ways around this?
(I tried to get wirebox working, couldn't figure out how to view \Log data, and var_dump isn't working on frontend, so I'm not really sure how to make this work in that environment).
Thanks! :)
Repository or Wirebox URL
https://wirebox.app/b/yrnl2
Additional information
No response
Please confirm (incomplete submissions will not be addressed)
Beta Was this translation helpful? Give feedback.
All reactions