solidjs / solid-router

A universal router for Solid inspired by Ember and React Router
MIT License
1.14k stars 147 forks source link

"@solidjs/router": "^0.10.3" not working #323

Closed sysmat closed 10 months ago

sysmat commented 10 months ago

Describe the bug

Your Example Website or App

https://stackblitz.com/edit/solidjs-templates-myqh2h?file=src%2Findex.tsx

Steps to Reproduce the Bug or Issue

Expected behavior

just working like "@solidjs/router": "^0.9.1"

Screenshots or Videos

No response

Platform

Additional context

No response

Brendan-csel commented 10 months ago

It looks like your links and routes didn't match (/users versus /people) and you were rendering twice.

It seems to work after adding some more links and routes that match up (and removing one of the render calls)

https://stackblitz.com/edit/solidjs-templates-gdqlqp?file=src%2FApp.tsx,src%2Findex.tsx

sysmat commented 10 months ago

Hm, very strange this new router(in my app when migrating to new router can not figure it out what is wrong), no errors but just dosen't show components, for me this is downgrade

sysmat commented 10 months ago

is there any debug or trace mode for this new router?

sysmat commented 10 months ago

I thinx I figure it out, before I was using a lot of Outlets and the new way is to wrapp it in a function with childrens