René's URL Explorer Experiment


Title: Document from Firestore only appears on first render with Angular Universal (SSR) · Issue #3323 · angular/angularfire · GitHub

Open Graph Title: Document from Firestore only appears on first render with Angular Universal (SSR) · Issue #3323 · angular/angularfire

X Title: Document from Firestore only appears on first render with Angular Universal (SSR) · Issue #3323 · angular/angularfire

Description: Version info Angular: 15.2.0 Firebase: 9.8.0 (or whatever AngularFire pulls in...) AngularFire: 7.5.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): Node: 16.19.1 Browser: Chromium 111.0.5563.64 OS: Pop!_OS Linux How to rep...

Open Graph Description: Version info Angular: 15.2.0 Firebase: 9.8.0 (or whatever AngularFire pulls in...) AngularFire: 7.5.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): Node: 16.19.1 Browser: Chromium 11...

X Description: Version info Angular: 15.2.0 Firebase: 9.8.0 (or whatever AngularFire pulls in...) AngularFire: 7.5.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): Node: 16.19.1 Browser: Chromium 11...

Opengraph URL: https://github.com/angular/angularfire/issues/3323

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Document from Firestore only appears on first render with Angular Universal (SSR)","articleBody":"\u003c!--\r\n\r\nIMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.\r\n\r\nThank you for contributing to the Angular and Firebase communities!\r\n\r\nHave a usage question?\r\n=======================\r\nWe get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:\r\n\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\r\n- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)\r\n\r\n*Please avoid double posting across multiple channels!*\r\n\r\nThink you found a bug?\r\n=======================\r\nYeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.\r\n\r\nHave a feature request?\r\n========================\r\nGreat, we love hearing how we can improve our products! Remove the template below and\r\nprovide an explanation of your feature request. Provide code samples if applicable. Try to\r\nthink about what it will allow you to do that you can't do today? How will it make current\r\nworkarounds straightforward? What potential bugs and edge cases does it help to avoid?\r\n\r\n-->\r\n\r\n\r\n### Version info\r\n\r\n\u003c!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. -->\r\n\r\n**Angular:**\r\n15.2.0\r\n\r\n**Firebase:**\r\n9.8.0 (or whatever AngularFire pulls in...)\r\n\r\n**AngularFire:**\r\n7.5.0\r\n\r\n**Other (e.g. Ionic/Cordova, Node, browser, operating system):**\r\nNode: 16.19.1\r\nBrowser: Chromium 111.0.5563.64\r\nOS: Pop!_OS Linux\r\n\r\n### How to reproduce these conditions\r\n\r\n**Failing test unit, Stackblitz demonstrating the problem**\r\n(follow steps below) \r\n\r\n\u003c!-- \r\nProvide a failing test unit, or create a minimal, complete, and \r\nverifiable example (http://stackoverflow.com/help/mcve) using \r\nStackBlitz (https://stackblitz.com/edit/angular-fire-start).\r\n-->\r\n\r\n**Steps to set up and reproduce**\r\n\r\n1. Create a Firestore collection (e.g. 'examples') with a document containing some data.\r\n2. `ng new ssr-test --routing=true --style=scss`\r\n3. `cd ssr-test`\r\n4. `ng generate environments`\r\n5. `ng add @nguniversal/express-engine`\r\n6. `ng add @angular/fire`  (hook it up with Firestore from step 1)\r\n7. Replace `app.component.ts` with the following (`path` in `ngOnInit` refers to step 1):\r\n```\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { doc, docData, Firestore } from '@angular/fire/firestore';\r\nimport { Observable } from 'rxjs';\r\n\r\n@Component({\r\n  selector: 'app-root',\r\n  template: '\u003cpre>{{ data$ | async | json }}\u003c/pre>'\r\n})\r\nexport class AppComponent implements OnInit {\r\n\r\n  data$: Observable\u003cany> | null = null;\r\n\r\n  constructor(private firestore: Firestore) {\r\n  }\r\n\r\n  ngOnInit() {\r\n\r\n    const path = '/examples/GscrMmeBDasN6llxVybm'\r\n    const ref = doc(this.firestore, path);\r\n    this.data$ = docData(ref);\r\n  }\r\n}\r\n```\r\n8. npm run build:ssr && npm run serve:ssr\r\n9. open http://localhost:4000 and view page source\r\n10. refresh page source\r\n\r\n\u003c!-- detailed instructions to run your minimal repro or to recreate the environment -->\r\n\r\n**Sample data and security rules**\r\nN/A\r\n\r\n\u003c!-- include/attach/link to some json sample data (or provide credentials to a sanitized, test Firebase project) -->\r\n\r\n### Debug output\r\n\r\n** Errors in the JavaScript console **\r\nN/A\r\n\r\n** Output from `firebase.database().enableLogging(true);` **\r\nN/A\r\n\r\n** Screenshots **\r\nN/A\r\n\r\n### Expected behavior\r\n\r\nContent of document from Firestore should appear on first view of source page and on every subsequent refresh.\r\n\r\n### Actual behavior\r\n\r\nContent of document from Firestore appears on first view of source page, then on subsequent refreshes is appears as `null`.\r\n","author":{"url":"https://github.com/estatian","@type":"Person","name":"estatian"},"datePublished":"2023-03-12T10:57:41Z","url":"https://github.com/angular/angularfire/issues/3323"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:c8851be2-2cd0-71d9-9cfb-e3a944af8d2c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idED50:50BE3:213BFF1:2BEAEA2:6B035A4A
html-safe-nonce067a074a2709f593acb1cde9f66ecbccee883ba81d4852351d7ea1b05d0b6e0f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDUwOjUwQkUzOjIxM0JGRjE6MkJFQUVBMjo2QjAzNUE0QSIsInZpc2l0b3JfaWQiOiIzNDA5NTg5NjIyNTY3ODE5ODUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacb1aea0c6d5413e0bb4921d584a2970e76fc3c64b2db047903ce5700d631b1acb
hovercard-subject-tagissue:1620319799
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3323/issue_layout
twitter:imagehttps://opengraph.githubassets.com/7c59baafcc20fd0dbb9f1ac915b310fcffe5348d28e3098918830d37ea0d3821/angular/angularfire/issues/3323
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/7c59baafcc20fd0dbb9f1ac915b310fcffe5348d28e3098918830d37ea0d3821/angular/angularfire/issues/3323
og:image:altVersion info Angular: 15.2.0 Firebase: 9.8.0 (or whatever AngularFire pulls in...) AngularFire: 7.5.0 Other (e.g. Ionic/Cordova, Node, browser, operating system): Node: 16.19.1 Browser: Chromium 11...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameestatian
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-preview
go-importgithub.com/angular/angularfire git https://github.com/angular/angularfire.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id49453413
octolytics-dimension-repository_nwoangular/angularfire
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49453413
octolytics-dimension-repository_network_root_nwoangular/angularfire
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angularfire/issues/3323#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3323
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangularfire%2Fissues%2F3323
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangularfire
Reloadhttps://github.com/angular/angularfire/issues/3323
Reloadhttps://github.com/angular/angularfire/issues/3323
Reloadhttps://github.com/angular/angularfire/issues/3323
angularhttps://github.com/angular
angularfirehttps://github.com/angular/angularfire
Codehttps://github.com/angular/angularfire
Issues162 (162)https://github.com/angular/angularfire/issues
Pull requests5 (5)https://github.com/angular/angularfire/pulls
Discussionshttps://github.com/angular/angularfire/discussions
Actionshttps://github.com/angular/angularfire/actions
Projectshttps://github.com/angular/angularfire/projects
Security and qualityhttps://github.com/angular/angularfire/security
Insightshttps://github.com/angular/angularfire/insights
https://github.com/angular/angularfire
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3323
New issuehttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3323
Document from Firestore only appears on first render with Angular Universal (SSR)https://github.com/angular/angularfire/issues/3323#top
https://github.com/davideast
https://github.com/estatian
estatianhttps://github.com/estatian
on Mar 12, 2023https://github.com/angular/angularfire/issues/3323#issue-1620319799
http://localhost:4000http://localhost:4000
https://github.com/hittten
hitttenhttps://github.com/hittten
on May 2, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1532003233
https://github.com/estatian
estatianhttps://github.com/estatian
on May 11, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1543947544
https://github.com/it-her0
it-her0https://github.com/it-her0
on May 11, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1544032168
https://github.com/estatian
estatianhttps://github.com/estatian
on May 12, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1546252774
https://github.com/tomscript
tomscripthttps://github.com/tomscript
on May 12, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1546259608
https://github.com/irvmar
irvmarhttps://github.com/irvmar
on May 30, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1567929646
https://github.com/Benzilla
Benzillahttps://github.com/Benzilla
on Jun 16, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1594596467
davideasthttps://github.com/davideast
on Jun 26, 2023https://github.com/angular/angularfire/issues/3323#event-9642817043
https://github.com/ndr
ndrhttps://github.com/ndr
on Aug 8, 2023https://github.com/angular/angularfire/issues/3323#issuecomment-1670288674
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angularfire/issues/3323
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angularfire/issues/3323
davideasthttps://github.com/davideast
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.