Replies: 2 comments
-
These are both great suggestions. I was thinking for this case we'd just setup a custom of router that didn't wire up the setupNativeEvents. It's why I separated it out that way. Basically something like this without the setupNative events: https://github.com/solidjs/solid-router/blob/main/src/routers/Router.ts But exposing the preload routes is a good idea. I wasn't sure the best API for it but I think that it could have multiple uses. I guess technically it is already exposed in |
Beta Was this translation helpful? Give feedback.
-
I did see how you structured it - looks straight forward to do #1. Figuring out API's is hard work. useNavigate('url', { preload: true}) maybe? It's an important pattern to precall api's before navigating to the page and it would be easy to do on focus of the buttons. Just need a way to call it. Thanks again! |
Beta Was this translation helpful? Give feedback.
-
Hi @ryansolid - I'm using SolidJS Universal Renderer to render to WebGL
https://github.com/lightning-js/solid
And also using this solid-router which works out of the box. I have two tweaks:
setupNativeEvents
be optional? Don't use anchor tags or click events at allrouter.preloadRoute(url)
- This may just need some documentation around how to do it without anchor tags.Thanks
Chris
Beta Was this translation helpful? Give feedback.
All reactions