-
Notifications
You must be signed in to change notification settings - Fork 30
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
Can't read the properties something of 'usePageContext()' #53
Comments
also sometimes i get random error showing |
TypeError: Cannot read properties of null (reading 'useLocation') |
It's because of this bug: vitejs/vite#3301 It probably kicks in when editing the |
hey, I think this one was solved by the beta update of |
Awesome, I'll try it soon. I think Vite 4 is just around the corner anyway. I'll try to coincide Rakkas 0.7 with it. |
very excited to see rakkas v0.7 🥳 |
this is still not fixed |
You're right. I'll look into it more thoroughly. |
I've been failing to replicate this for sometime. Do you have a repro somewhere? Also, are you on a monorepo setup? I think it might be relevant. |
I think it's now fixed. BTW is fast refresh disabled by default on rakkasv7? last time i had to manually enable fast refresh. After enabling fast refresh, i was not getting any context related issues. I'd inform you after using it more. For now closing this issue |
Erm, no? That's weird. How did you enable it? |
Oh i used react field on rakkas' vite plugin 😃 |
Sometimes using rakkasjs hooks like usePageContext and useLocation throws error showing cant read the properties something of null
The text was updated successfully, but these errors were encountered: