You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on a reproduction on another issue I'm going to open soon. I wanted to import CookiesProvider, but Intellisense won't suggest the correct import source.
The text was updated successfully, but these errors were encountered:
The issue I mentioned in the first comment turns out to be related to using path-based cookies, which doesn't work on soft navigations (it only captures the cookies that match the path of the last hard refresh). So while this is not the fault of this library, perhaps we should disable setting the path entirely and always default to '/'
We must have different paths for /server and / as some components aren't possible to be imported on client-side components.
Not sure how we can improve this behavior as there is no clear documentation on how to improve IntelliSense suggestions.
moshest
changed the title
CookiesProvider not being correctly suggested to import from next-client-cookies/server
VSCode IntelliSense: Wrong import suggestions for CookiesProvider and useCookiesNov 20, 2024
I'm working on a reproduction on another issue I'm going to open soon. I wanted to import
CookiesProvider
, but Intellisense won't suggest the correct import source.The text was updated successfully, but these errors were encountered: