Title: Belongs to relationships on new records don't react to updates to the relationship. · Issue #125 · hyperstack-org/hyperstack · GitHub
Open Graph Title: Belongs to relationships on new records don't react to updates to the relationship. · Issue #125 · hyperstack-org/hyperstack
X Title: Belongs to relationships on new records don't react to updates to the relationship. · Issue #125 · hyperstack-org/hyperstack
Description: before_mount { foo = Model.new(attr1: 'hello') ... DIV { foo.belongs_to_some_bar&.bar_attribute } ... on(:click) { foo.belongs_to_some_bar = a_bar } # should rerender the div but does not if we change the new to Model.new(attr1: 'hello',...
Open Graph Description: before_mount { foo = Model.new(attr1: 'hello') ... DIV { foo.belongs_to_some_bar&.bar_attribute } ... on(:click) { foo.belongs_to_some_bar = a_bar } # should rerender the div but does not if we cha...
X Description: before_mount { foo = Model.new(attr1: 'hello') ... DIV { foo.belongs_to_some_bar&.bar_attribute } ... on(:click) { foo.belongs_to_some_bar = a_bar } # should rerender the div but does n...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/125
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Belongs to relationships on new records don't react to updates to the relationship.","articleBody":"```ruby\r\nbefore_mount { foo = Model.new(attr1: 'hello') \r\n...\r\nDIV { foo.belongs_to_some_bar\u0026.bar_attribute }\r\n...\r\non(:click) { foo.belongs_to_some_bar = a_bar } # should rerender the div but does not\r\n```\r\n\r\nif we change the new to `Model.new(attr1: 'hello', belongs_to_some_bar: nil)` it works\r\n\r\nThis was found on hyperloop legacy so perhaps its fixed?\r\n","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2019-02-13T17:24:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/125/hyperstack/issues/125"}
| 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:d2080d62-dcd3-e013-85ca-a09a6632e766 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8414:1219ED:235AB0:2D0E72:6991D5C3 |
| html-safe-nonce | 2c6134923e2472d579e61d65e22e6f36c4008779104d8169bb3608f24d6a9eac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDE0OjEyMTlFRDoyMzVBQjA6MkQwRTcyOjY5OTFENUMzIiwidmlzaXRvcl9pZCI6Ijc5NzQzNTk5NjA4NTAxMjYyNzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3de55e07f198e4b438089aa72ac0d3bc3cb7920a65b234e1f36251924e89c2b4 |
| hovercard-subject-tag | issue:409916383 |
| 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/125/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e1bb91efcae4f0f84ac73a5628d688a4c9a04eb219575415e02b8e94af0d7aaa/hyperstack-org/hyperstack/issues/125 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e1bb91efcae4f0f84ac73a5628d688a4c9a04eb219575415e02b8e94af0d7aaa/hyperstack-org/hyperstack/issues/125 |
| og:image:alt | before_mount { foo = Model.new(attr1: 'hello') ... DIV { foo.belongs_to_some_bar&.bar_attribute } ... on(:click) { foo.belongs_to_some_bar = a_bar } # should rerender the div but does not if we cha... |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width