-
-
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
Component bindings can't access store #1100
Comments
Thanks, @Rich-Harris . Unfortunately this doesn't seem to solve my original issue, that updating the inputs in the child components does not fire the Does |
@nvioli , you posted a different SO question. I believe that the question is: |
Anyway, the issue is well reported. :) |
Fixed (again! hopefully for good) in 1.55 — thanks |
This doesn't seems to be fixed yet, i have 3 files: export const windowWidth = writable(1000); 2.svelte <svelte:window bind:innerWidth={$windowWidth} />
<p>{$windowWidth}</p> 3.svelte <p>{$windowWidth}</p> But when i change the window size the value in I'm working in a sapper project that has svelte version: A temperately solution seems to be this: <svelte:window on:resize={() => ($windowWidth = window.innerWidth)} /> In the script tag of 2.svelte onMount(() => ($windowWidth = window.innerWidth)); |
Found this as an unclosed item on the project page, and just leaving a note to self — it looks like the issue in the last comment was fixed at some point: https://svelte.dev/repl/4c0e43f14ddb4232addc784d35e03baf?version=3.22.2 |
In an app with
store
support, any component can do this......but this doesn't work:
It just sets
$y
on the parent component, rather than settingy
on the store.The text was updated successfully, but these errors were encountered: