was created with unknown prop 'location'
See original GitHub issueIf use:
<Route exact path="about"><About /></Route>
All good.
If use:
<Route exact path="about" component={About} />
About.svelte:14 <About> was created with unknown prop ‘location’
About.svelte:14 <About> was created with unknown prop ‘exact’
Any ideal?
“svelte”: “^3.20.1” “svelte-routing”: “^1.4.2”
Issue Analytics
- State:
- Created 4 years ago
- Reactions:11
- Comments:11 (1 by maintainers)
Top Results From Across the Web
Passing props down in Svelte - Stack Overflow
With svelte-routing, you don't pass props from the <Link> component, you pass them from the <Route> component implicitly.
Read more >Unknown Prop Warning - React
The unknown-prop warning will fire if you attempt to render a DOM element with a prop that is not recognized by React as...
Read more >Unknown prop using export let and export function • REPL ...
<script> import Wrapper from "./Wrapper.svelte" let showModal = false let saveForm </script> <button on:click="{() => showModal = !
Read more >Dynamic behavior in Svelte: working with variables and props
Learn and put into practice some basic Svelte concepts, like creating components, passing data using props, rendering JavaScript expressions ...
Read more >Location Data from Props - Gatsby
What is location data ... key: 'ac3df4', // does not populate with a HashHistory! ... Note that you have to parse the search...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
hey, @EmilTholin this package becoming popular. you should fix all of the bugs. I saw that the latest version is a year ago. please fix the bug
I get this warning if I do:
<Route path="post" component="{Post}" />
but not when I do<Route path="post"><Post /></Route>