Title: [Auth Guard - BUG] canActivate auth guard causes blank screen after cache clear with multiple tabs opens. · Issue #3691 · angular/angularfire · GitHub
Open Graph Title: [Auth Guard - BUG] canActivate auth guard causes blank screen after cache clear with multiple tabs opens. · Issue #3691 · angular/angularfire
X Title: [Auth Guard - BUG] canActivate auth guard causes blank screen after cache clear with multiple tabs opens. · Issue #3691 · angular/angularfire
Description: If using the canActivate auth guard (with spread syntax), If you have more than 1 tab open of the same app, and then you clear the cache by using the browser in one of the tabs, and try to refresh, it causes a blank screen, which resolve...
Open Graph Description: If using the canActivate auth guard (with spread syntax), If you have more than 1 tab open of the same app, and then you clear the cache by using the browser in one of the tabs, and try to refresh,...
X Description: If using the canActivate auth guard (with spread syntax), If you have more than 1 tab open of the same app, and then you clear the cache by using the browser in one of the tabs, and try to refresh,...
Opengraph URL: https://github.com/angular/angularfire/issues/3691
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Auth Guard - BUG] canActivate auth guard causes blank screen after cache clear with multiple tabs opens.","articleBody":"If using the canActivate auth guard (with spread syntax), If you have more than 1 tab open of the same app, and then you clear the cache by using the browser in one of the tabs, and try to refresh, it causes a blank screen, which resolves after you close the other open tab.\n\nsteps to reproduce:\n\nversions:\n \"@angular/common\": \"^20.3.0\",\n \"@angular/compiler\": \"^20.3.0\",\n \"@angular/core\": \"^20.3.0\",\n \"@angular/fire\": \"^20.0.1\",\n \"@angular/forms\": \"^20.3.0\",\n \"@angular/platform-browser\": \"^20.3.0\",\n \"@angular/router\": \"^20.3.0\",\n \"rxjs\": \"~7.8.0\",\n \"tslib\": \"^2.3.0\",\n \"zone.js\": \"~0.15.0\"\n\n\nsteps to reproduce: \n1. Create new project\n2. install angular fire\n3. setup authentication and firebase project\n4. utilize the ...canActivate auth guard like below.\n5. open two tabs of the same page.\n6. in one of them, clear the cache (by using the button close to the url in chrome for ex)\n7. refresh\n8. blank screen.\n9. verify that if you close the second tab, then the first one loads correctly.\n\n```TS\nconst redirectTeste1 = () => redirectLoggedInTo('test2');\nconst redirectTeste2 = () => redirectUnauthorizedTo('teste1');\n\nexport const routes: Routes = [\n { path: '', redirectTo: 'teste1', pathMatch: 'full' },\n\n {\n path: 'teste1',\n component: Test1,\n ...canActivate(redirectTeste1),\n },\n\n {\n path: 'teste2',\n component: Test2,\n ...canActivate(redirectTeste2),\n },\n];\n```\n\nlmk if this is somehow a user error, but with such a barebones configuration I think is a legitimate bug.","author":{"url":"https://github.com/DanielNovaesDias","@type":"Person","name":"DanielNovaesDias"},"datePublished":"2026-02-14T01:26:30Z","url":"https://github.com/angular/angularfire/issues/3691"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:716bdb22-0994-fc8d-f2bc-9781cb152ed9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E2C:8229E:233EEF8:2CC367B:6B0356E2 |
| html-safe-nonce | ec350051b87999d122d88354f9b50e7fea0a5fa96b865bc3000715ab60a6b3d8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTJDOjgyMjlFOjIzM0VFRjg6MkNDMzY3Qjo2QjAzNTZFMiIsInZpc2l0b3JfaWQiOiI3NTk0MTYxNTQ0NTAyNjYyODgyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | f88b087b0633c9005b94c97d6d5672f5e00a5985b749d624ab7f9de114017aab |
| hovercard-subject-tag | issue:3939990082 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3691/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b62ed8c3521dc607caa0bb16eba7359c39132e29684fa4aac9472cb20c5af807/angular/angularfire/issues/3691 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b62ed8c3521dc607caa0bb16eba7359c39132e29684fa4aac9472cb20c5af807/angular/angularfire/issues/3691 |
| og:image:alt | If using the canActivate auth guard (with spread syntax), If you have more than 1 tab open of the same app, and then you clear the cache by using the browser in one of the tabs, and try to refresh,... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielNovaesDias |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width