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

warning thrown in 3.16.0 when using export for store #4021

Closed
dekdevy opened this issue Nov 30, 2019 · 1 comment · Fixed by #4027
Closed

warning thrown in 3.16.0 when using export for store #4021

dekdevy opened this issue Nov 30, 2019 · 1 comment · Fixed by #4027
Labels

Comments

@dekdevy
Copy link

dekdevy commented Nov 30, 2019

Describe the bug
An incorrect(?) warning is thrown when exporting a variable that is exclusively used in a "$dereferenced" manner. This warning was not given in 3.15.0.

To Reproduce

<script>
	export let store
</script>

<div class="{$store?'a':'b'}"></div>

https://svelte.dev/repl/809da99693de49acb3474159f9006dcc?version=3.15.0
https://svelte.dev/repl/809da99693de49acb3474159f9006dcc?version=3.16.0

@Conduitry
Copy link
Member

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

Successfully merging a pull request may close this issue.

2 participants