You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 12, 2020. It is now read-only.
gives me Error: svero expects <Route redirect="/date/2019-05-05"> to send to an existing route. /date/2019-05-05 does not exists.. Is there a way to do this kind of redirect inside the router?
The text was updated successfully, but these errors were encountered:
<script>import{onMount}from'svelte';consttoday=// Your code here...onMount(()=>{history.pushState({},'',`/date/${today}`);constpopEvent=newEvent('popstate');window.dispatchEvent(popEvent);});</script>
Just a reminder that v0.3.0+ now features the navigateTo() method, so the code would be even smaller:
<script>import{onMount}from'svelte';import{navigateTo}from'svero';consttoday=// Your code here...onMount(()=>{navigateTo(`/date/${today}`);});</script>
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
This router configuration
gives me
Error: svero expects <Route redirect="/date/2019-05-05"> to send to an existing route. /date/2019-05-05 does not exists.
. Is there a way to do this kind of redirect inside the router?The text was updated successfully, but these errors were encountered: