-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown prop using export let and export function - error comeback #7474
Comments
I may have misunderstood but if the bug is the unknown prop warning then here's a simpler repro: https://svelte.dev/repl/3b8631768b874557b3987bdd10e29d76?version=3.47.0 Warning seems to stem from line 3 in Arguably export function is a one way binding from the child to the parent and shouldn't get a value from the parent and the warning is expected behavior here. |
@gtm-nayan The expected behavior? And how to do it differently so that the warning doesn't display? |
For me it is, but the consensus might be different.
Just don't assign anything to the receiver of the binding and the warning goes away. ( |
We got rid of these warnings in Svelte 5, so I'll close this issue |
Describe the bug
It's the same problem:
#4323
Reproduction
This is the REPL from that bug:
https://svelte.dev/repl/79aa242f7e6d4af684099868189d3cb4?version=3.18.0
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: