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

Is it possible to make this work well with Routify SSR? #2

Closed
Evertt opened this issue Mar 20, 2021 · 3 comments
Closed

Is it possible to make this work well with Routify SSR? #2

Evertt opened this issue Mar 20, 2021 · 3 comments
Labels
wontfix This will not be worked on

Comments

@Evertt
Copy link

Evertt commented Mar 20, 2021

I just created an experiment with Routify and it seems that SSR doesn't work quite like you'd expect. It is possible to wait an arbitrary amount of time for SSR, but then on the client-side it will start the loading process from the beginning again. Which isn't a problem per se, but it means that sometimes it reverts already-loaded-DOM back to the loading-state.

Here's a demo. (You'll probably need to refresh a bunch of times to see what I mean.)

edit: hmm, wait, now I can't reproduce the problem anymore? Can you reproduce the problem when you load my demo?

@Evertt
Copy link
Author

Evertt commented Mar 20, 2021

Never mind, I think it's working like it's supposed to, I can't reproduce the problem anymore.

@Evertt Evertt closed this as completed Mar 20, 2021
@Evertt
Copy link
Author

Evertt commented Mar 20, 2021

Oh nope, I found a way to reproduce the issue. Check the demo again. 😅

Here's my code

@Evertt Evertt reopened this Mar 20, 2021
@JamCart
Copy link

JamCart commented Mar 23, 2021

I have a few problems with this as a demo:

  • No data is being passed from the server to client. I would expect the client to have to start over from scratch if the data itself isn't hydrated.
  • This is an issue you'd run in to just using Svelte's {#await} blocks. Since that is the basis for this library, we're limited by its limitations.

If a demo manages to get past those two roadblocks, it might be worth another look.

@JamCart JamCart closed this as completed Mar 23, 2021
@JamCart JamCart added the wontfix This will not be worked on label Mar 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant