-
-
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
Run transitions in context of component #1675
Comments
No, no reason not to. |
This would've helped me on a project a while ago, where I needed to set a class on a I can think of lots of potentially dumb things someone might do with full access to the component during the transition -- setting or deleting things -- but maybe that's all fine. |
Rich-Harris
added a commit
that referenced
this issue
Aug 24, 2018
kaisermann
pushed a commit
to kaisermann/svelte
that referenced
this issue
Sep 19, 2018
run transitions in context of component
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just tried to do this, to prevent a transition from running when a component is first rendered (in a situation where
skipIntroByDefault
isn't an option):That doesn't work, because transition functions aren't called with
component
as context. In this case it was easy to fix by passingstarted
as a parameter, but that wouldn't always be the case.We could change this line:
Any reason not to?
The text was updated successfully, but these errors were encountered: