svelte-micro icon indicating copy to clipboard operation
svelte-micro copied to clipboard

Support for serverside environments

Open ItsRealmy opened this issue 1 year ago • 1 comments

Not sure if this is the best place to make a feature request, but here goes:

I love the simplicity of this package, this is exactly how routing should be. However, due to the use of the document variable somewhere in the code, I'm not able to render any component with this router on the server (using Component.render()).

Could there be a way to pass a url prop to the router in order to make it work on the server, similarly to how svelte-routing does it?

ItsRealmy avatar Apr 06 '24 08:04 ItsRealmy