pateketrueke / yrv

Your routing vibes! (for Svelte)
https://svelte.dev/repl/0f07c6134b16432591a9a3a0095a80de
161 stars 9 forks source link

Fallback component desaparecido #31

Closed frederikhors closed 4 years ago

frederikhors commented 4 years ago

REPL: https://svelte.dev/repl/8b0565744d414abd88c2d8e42cccb6a8?version=3.20.1

I expect to see /notfound NotFound fallback route component.

Why not?

frederikhors commented 4 years ago

I think this can help:

index.umd.js:277 Uncaught (in promise) TypeError: Cannot read property 'key' of undefined
    at rm (index.umd.js:277)
    at Object.rm (index.umd.js:312)
    at unassignRoute (Router.svelte:54)
    at Route.svelte:87
    at run (index.mjs:18)
    at Array.forEach (<anonymous>)
    at run_all (index.mjs:24)
    at destroy_component (index.mjs:1345)
    at Object.destroy [as d] (App.svelte:40)
    at Object.destroy [as d] (router.js:187)
pateketrueke commented 4 years ago

I got this one: TypeError: "root.info is undefined"

frederikhors commented 4 years ago

I do not. Use incognito mode with that REPL.

pateketrueke commented 4 years ago

Nevermind, I found the root cause. 🐛

frederikhors commented 4 years ago

Should we add a test for this bug?

pateketrueke commented 4 years ago

Should we add a test for this bug?

Yeah, but I'm still unsure how to add more tests without struggle. 🤔