Open falkomerr opened 3 weeks ago
I'm not familiar with SvelteKit, unfortunately, but it would be great, if you could contribute and make a PR with such adapter :)
I just changed the adapter.ts like this: https://pastebin.com/uC6wR0LH
Can you create a PR with this adapter for SvelteKit? I just haven't created a repository for it.
It is not that simple like this. At least there should be tests and documentation. And I don't know, how to test library with SvelteKit, maybe there should be tests with some empty application build. Import from '$app/navigation'
works fine inside your SvelteKit application, but I have doubts that it will work inside a library. Builders and packagers usually have different rules for your application code and code from library from node_modules
folder.
Maybe it could be covered by adding support for custom history
adapter 🤔
When using query string in SvelteKit I get this error: Avoid using
history.pushState(...)
andhistory.replaceState(...)
as these will conflict with SvelteKit's router. Use thepushState
andreplaceState
imports from$app/navigation
instead.