Closed quantuminformation closed 3 years ago
This should just work... The Router runs the matching everytime the location or the registered routes change, so it's fine... Or does the example not work?
wasnt working, ill double check tomorrow
Alright, I'll have to check to. In the meantime you could do it like this:
<Route path="/">
{#if $userDataStore}
<Home />
{:else}
<Feed />
{/if}
</Route>
I could nor reproduce the issue... I've set up a small example in the REPL, which uses both the Route
's component
prop and the Route
children for rendering the views and both work just fine... Could you provide an example where it does not work?
works!
sorry i've been busy
Is this something evil or can it be supported?