{"id":15772413,"url":"https://github.com/c-ehrlich/broadcast-invalidation-demo","last_synced_at":"2025-03-31T12:15:08.307Z","repository":{"id":241494468,"uuid":"806946817","full_name":"c-ehrlich/broadcast-invalidation-demo","owner":"c-ehrlich","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-28T16:31:06.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T14:51:41.244Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/c-ehrlich.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T07:51:46.000Z","updated_at":"2024-05-28T16:31:10.000Z","dependencies_parsed_at":"2024-05-28T19:31:38.231Z","dependency_job_id":"645bdd99-c01b-4837-ad79-c47259b3a472","html_url":"https://github.com/c-ehrlich/broadcast-invalidation-demo","commit_stats":null,"previous_names":["c-ehrlich/broadcast-invalidation-demo"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fbroadcast-invalidation-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fbroadcast-invalidation-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fbroadcast-invalidation-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c-ehrlich%2Fbroadcast-invalidation-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c-ehrlich","download_url":"https://codeload.github.com/c-ehrlich/broadcast-invalidation-demo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246465249,"owners_count":20781919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-04T15:22:19.672Z","updated_at":"2025-03-31T12:15:08.291Z","avatar_url":"https://github.com/c-ehrlich.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Instructions to replicate\n\n## Current state\n- `cd ./before`, `pnpm i`, `pnpm dev`\n- open two windows of `localhost:5173` and open RQ devtools\n- invalidation across tabs will work\n- hide the query in one tab, see in devtools that the query is removed in both tabs - invalidation across tabs no longer works\n- show the query again, invalidation across tabs will still be broken even though the query has an observer in both tabs again\n\n## My (bad) fix\n- `cd ./after`, `pnpm i`, `pnpm dev`\n- same as above, but the query will now no longer be removed from the tab that needs it, and invalidation will continue to work across tabs\n- see diff: https://github.com/c-ehrlich/broadcast-invalidation-demo/commit/e2133b9bb01876d31d9b259933b212002becd705 (the initial version of broadcast-query-client is just copy pasted from `@tanstack/query-broadcast-client-experimental@5.38.0`)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-ehrlich%2Fbroadcast-invalidation-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc-ehrlich%2Fbroadcast-invalidation-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc-ehrlich%2Fbroadcast-invalidation-demo/lists"}