kaisermann / kaisermann/svelte-loadable
How to handle this warning and this situation? `<Create> was created with unknown prop 'playerID'`
- Dominant language
- Svelte
- Stars
- 321
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Description
I'm using [`svelte-loadable`](https://github.com/kaisermann/svelte-loadable) and the below code but I'm getting the below warning and I feel this is not a good code.
Can you suggest me how to properly handle this?
The warning: ` was created with unknown prop 'playerID'`
The code:
```svelte
import Loadable from "svelte-loadable";
export let loader: string;
// other code
import("$lib/../routes/players/create.svelte")
: () => import("$lib/../routes/teams/create.svelte")
// others here...
}
let:component
>
```
Is there a way I can avoid the `playerID` prop based on which component I'm loading?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the dynamic component usage in routes/players/create.svelte and routes/teams/create.svelte, along with the svelte-loadable usage shown in the issue. Determine whether the project documents how props are passed to conditionally loaded components; done means providing a clear, supported recommendation for avoiding the unknown playerID warning.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100