Skip to content
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

Reactive declarations run twice w/ return statement #2927

Closed
lukeed opened this issue Jun 1, 2019 · 3 comments
Closed

Reactive declarations run twice w/ return statement #2927

lukeed opened this issue Jun 1, 2019 · 3 comments

Comments

@lukeed
Copy link
Member

lukeed commented Jun 1, 2019

Similar to but different from #2054

REPL: https://svelte.dev/repl/431be3ed2fd3423991f8eeaa689ad5b7?version=3.4.4

When the obj => post = obj handler has its implicit return statement removed, then the load function is called once, as expected.

@mrkishi
Copy link
Member

mrkishi commented Jun 1, 2019

This is an odd one for sure.
Duplicate of #2748 (more info on #2873).

@mrkishi mrkishi closed this as completed Jun 1, 2019
@lukeed
Copy link
Member Author

lukeed commented Jun 1, 2019

Missed those, Thanks~

@Conduitry
Copy link
Member

Fixed in 3.10.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants