Title: no mutation signaled if a scope changes async · Issue #164 · hyperstack-org/hyperstack · GitHub
Open Graph Title: no mutation signaled if a scope changes async · Issue #164 · hyperstack-org/hyperstack
X Title: no mutation signaled if a scope changes async · Issue #164 · hyperstack-org/hyperstack
Description: if a remote delete is received everything works except observers of the scope are not notified. This because collections never notify while data is loading (not sure why) It seems though that the only broken case is when a nested scope i...
Open Graph Description: if a remote delete is received everything works except observers of the scope are not notified. This because collections never notify while data is loading (not sure why) It seems though that the o...
X Description: if a remote delete is received everything works except observers of the scope are not notified. This because collections never notify while data is loading (not sure why) It seems though that the o...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/164
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"no mutation signaled if a scope changes async","articleBody":"if a remote delete is received everything works except observers of the scope are not notified.\r\n\r\nThis because collections never notify while data is loading (not sure why)\r\n\r\nIt seems though that the only broken case is when a nested scope is updated by an async notification. So a workaround is to add this code \r\n\r\n```ruby\r\n Hyperstack::Internal::State::Mapper.bulk_update do\r\n Hyperstack::Internal::State::Variable.set(target, :collection, target.collection)\r\n end\r\n```\r\nimmediately after \r\n```ruby\r\n target.replace loaded_collection\r\n```\r\nin server_data_cache.rb\r\n\r\n","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2019-04-14T03:47:56.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/164/hyperstack/issues/164"}
| 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:65f1a5dd-6886-c538-790f-b88408fcc707 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF2A:15B55:C0BC56:F333F5:699182B4 |
| html-safe-nonce | 5aa17e7ae55cc4243c21ae2b640e4d41200403e1aeafd3c0233c939e0db27547 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjJBOjE1QjU1OkMwQkM1NjpGMzMzRjU6Njk5MTgyQjQiLCJ2aXNpdG9yX2lkIjoiNzU5MzY3NjA3MTQ0MDA1NzAxMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 200d55697dd11578bd78802c376f258309a8474a6442f6369ba78d7e303811e8 |
| hovercard-subject-tag | issue:432929303 |
| 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/hyperstack-org/hyperstack/164/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c52cf781cceb2e9d4a311e9fcf780e0f04bbe368086e6dc760c81a5701f596dc/hyperstack-org/hyperstack/issues/164 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c52cf781cceb2e9d4a311e9fcf780e0f04bbe368086e6dc760c81a5701f596dc/hyperstack-org/hyperstack/issues/164 |
| og:image:alt | if a remote delete is received everything works except observers of the scope are not notified. This because collections never notify while data is loading (not sure why) It seems though that the o... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | catmando |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/hyperstack-org/hyperstack git https://github.com/hyperstack-org/hyperstack.git |
| octolytics-dimension-user_id | 34562730 |
| octolytics-dimension-user_login | hyperstack-org |
| octolytics-dimension-repository_id | 145879576 |
| octolytics-dimension-repository_nwo | hyperstack-org/hyperstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145879576 |
| octolytics-dimension-repository_network_root_nwo | hyperstack-org/hyperstack |
| 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 | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width