We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It is possible to set transitions via props when creating Svelte components:
<script> export let transition; </script> <p transition:transition|local>Hi!</p>
However, they cannot be optional:
<script> export let transition = undefined; </script> <p transition:transition|local>Hi!</p>
Error thrown if transition is undefined:
Check if transition is a function before running it.
The current implementation does not check if fn is of type "function"
"function"
Setting a default empty empty function:
<script> export let transition = () => {}; </script> <p transition:transition|local>Hi!</p>
However, this is a potential memory leak until this pr is merged.
would make my life easier
The text was updated successfully, but these errors were encountered:
maybe duplication of #7157 ;)
Sorry, something went wrong.
No branches or pull requests
Describe the problem
It is possible to set transitions via props when creating Svelte components:
However, they cannot be optional:
Error thrown if transition is undefined:

Describe the proposed solution
Check if transition is a function before running it.
The current implementation does not check if fn is of type

"function"
Alternatives considered
Setting a default empty empty function:
However, this is a potential memory leak until this pr is merged.
Importance
would make my life easier
The text was updated successfully, but these errors were encountered: