-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
can't supply store to nested components server side #1107
Comments
Sorry I'm not answering your question in full, but just a quick pointer, generally speaking using the underlying internals (anything starting with |
The use of svelte-redux makes zero difference here, it errors just the same using a regular store. I was just being a bit lazy when it came to providing the example. Here is a gist that shows the same issue using the vanilla store. As for using internals of the api, if there was any suggestion it would be take exactly what there is now but make it public, allowing for third party stores that don't extend the built in store itself. |
Released 1.52 with the fix. Thanks! |
Hey, I'm trying to pass a store to a nested component which works well ordinarily, but it fails when server rendering it.
E.g. I have a manage account page like so:
And in the TwoFactorAuth component, using a store via svelte-redux
As mentioned this fails on the server side, but not when navigation to the page on the client side.
I dug into the generated code a bit and I see it generates the template like so:
This is bypassing
render
where the store would be initialised ordinarily, and is instead just passing the parent store.It errors on the following line in the TwoFactorAuth's
_render
method, as the store is undefinedThe text was updated successfully, but these errors were encountered: