Title: Hyper model's `while_loading` does not work when loading scopes · Issue #67 · hyperstack-org/hyperstack · GitHub
Open Graph Title: Hyper model's `while_loading` does not work when loading scopes · Issue #67 · hyperstack-org/hyperstack
X Title: Hyper model's `while_loading` does not work when loading scopes · Issue #67 · hyperstack-org/hyperstack
Description: # add this to the while_loading spec, and watch it fail! ... FactoryBot.create(:user, first_name: 'Lily', last_name: 'DaDog') FactoryBot.create(:user, first_name: 'Coffee', last_name: 'Boxer') ... it "while loading works with relationshi...
Open Graph Description: # add this to the while_loading spec, and watch it fail! ... FactoryBot.create(:user, first_name: 'Lily', last_name: 'DaDog') FactoryBot.create(:user, first_name: 'Coffee', last_name: 'Boxer') ... ...
X Description: # add this to the while_loading spec, and watch it fail! ... FactoryBot.create(:user, first_name: 'Lily', last_name: 'DaDog') FactoryBot.create(:user, first_name: 'Coffee', ...
Opengraph URL: https://github.com/hyperstack-org/hyperstack/issues/67
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Hyper model's `while_loading` does not work when loading scopes","articleBody":" ```ruby\r\n# add this to the while_loading spec, and watch it fail!\r\n...\r\n FactoryBot.create(:user, first_name: 'Lily', last_name: 'DaDog')\r\n FactoryBot.create(:user, first_name: 'Coffee', last_name: 'Boxer')\r\n...\r\nit \"while loading works with relationships\" do\r\n ReactiveRecord::Operations::Fetch.semaphore.synchronize do\r\n mount \"WhileLoadingTester\", {}, no_wait: true do\r\n class MyComponent \u003c HyperComponent\r\n render do\r\n SPAN { 'loading...' }\r\n end\r\n end\r\n class WhileLoadingTester \u003c HyperComponent\r\n render do\r\n UL do\r\n User.each { |user| LI { user.last_name } }\r\n end\r\n .while_loading 'loading...'\r\n end\r\n end\r\n end\r\n expect(page).to have_content('loading...')\r\n expect(page).not_to have_content('DaDog', wait: 0)\r\n end\r\n expect(page).to have_content('DaDog')\r\n expect(page).not_to have_content('loading...', wait: 0)\r\n end\r\n```\r\nlast line of spec fails...\r\n","author":{"url":"https://github.com/catmando","@type":"Person","name":"catmando"},"datePublished":"2018-11-19T19:24:14.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/67/hyperstack/issues/67"}
| 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:0c4e56fe-1f05-d906-c7c6-e3e9bcb58f25 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9B74:D7AB6:22EFED1:2C6C34D:69919D58 |
| html-safe-nonce | 49975125ae71b20df4457c854c40900723e751e29389d5d01b4acb276fe0f39d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5Qjc0OkQ3QUI2OjIyRUZFRDE6MkM2QzM0RDo2OTkxOUQ1OCIsInZpc2l0b3JfaWQiOiIxNzEzNTk2MDYzNDM1MzAwMTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 93f5f674cb72526fbcbaceec00b15a06122be17a7dc936aafb6a47b2c6f3d080 |
| hovercard-subject-tag | issue:382358698 |
| 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/67/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e2a7e45b5967d636e6e7970385c35ed3e62e81e5091c0ce87e50cf92bd5f5f0c/hyperstack-org/hyperstack/issues/67 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e2a7e45b5967d636e6e7970385c35ed3e62e81e5091c0ce87e50cf92bd5f5f0c/hyperstack-org/hyperstack/issues/67 |
| og:image:alt | # add this to the while_loading spec, and watch it fail! ... FactoryBot.create(:user, first_name: 'Lily', last_name: 'DaDog') FactoryBot.create(:user, first_name: 'Coffee', last_name: 'Boxer') ... ... |
| 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