-
Notifications
You must be signed in to change notification settings - Fork 433
State Rehydration with TransferState #555
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
Comments
I'm trying to look into this as well, any help would be appreciated. What i've discovered so far:
|
update: what i noticed is when registering |
update#2 So pretty much I have a working solution and got it working on our project, but it requires some changes, ideally in both angular and universal
|
@stephenlautier You rock! |
@MarkPieszak Any updates? |
A new update has been released (in angular/universal repo) about a week or so ago, can you give it a shot and let us know if it's working? @Flood |
It seems to work! State rehydration works on my project but SSR does not. It breaks on ERROR ReferenceError: Event is not defined (see angular/universal#844) However, SSR works on this repo. I guess it will work on my project when the Event issue is solved. |
Excellent 👍 Just add A lot of times you need to mock/stub things in Node to handle crazy global (typically browser-only items). Unfortunately a lot of people forget you should always check for the existence of global variables :( Closing as TransferState works now 💃 |
Since we upgraded to the latest version of this repo our state rehydration fails.
Found this in app.module.server
Any ideas when this will be fixed? Can you @MarkPieszak point me in the right direction and then I can investigate as well.
The text was updated successfully, but these errors were encountered: