Skip to content

AngularFire 2 + Pre-rendering #1066

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

Closed
borntodesign opened this issue Jul 10, 2017 · 3 comments
Closed

AngularFire 2 + Pre-rendering #1066

borntodesign opened this issue Jul 10, 2017 · 3 comments
Assignees

Comments

@borntodesign
Copy link

I have my sites hosted on roast.io which pre-renders my site just fine, however, Firebase data gets loaded up and cached but it always reconnects on load. Is there a way to stop it from doing the initial connection (https://www.hsmemagazine.com/article/freedom-from-harm).

@jamesdaniels jamesdaniels self-assigned this Jul 10, 2017
@MichaelSolati
Copy link

Some prerendering tools are windowless environments. So ideally you can wrap it in something like

if (typeof window !== 'undefined') {
     // Your firebase function...
}

And that way you can prevent it from running.

@borntodesign
Copy link
Author

No joy, it's like I need to turn off the initial list load and only load when there is a change

@davideast
Copy link
Collaborator

Follow #1073 for updates on SSR and AngularFire.

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

No branches or pull requests

4 participants