Title: Storing an ArrayBuffer doesn't get retrigger when setting a new value · Issue #104 · code11/engine · GitHub
Open Graph Title: Storing an ArrayBuffer doesn't get retrigger when setting a new value · Issue #104 · code11/engine
X Title: Storing an ArrayBuffer doesn't get retrigger when setting a new value · Issue #104 · code11/engine
Description: Producer b is only called once: const a: producer = ({ foo = update.value }) => { const int32 = new Int32Array(2); int32[0] = 42; foo.set(int32); setTimeout(() => { int32[1] = 43; foo.set(int32); }); }; const b: producer = ({ foo = obser...
Open Graph Description: Producer b is only called once: const a: producer = ({ foo = update.value }) => { const int32 = new Int32Array(2); int32[0] = 42; foo.set(int32); setTimeout(() => { int32[1] = 43; foo.set(int32); }...
X Description: Producer b is only called once: const a: producer = ({ foo = update.value }) => { const int32 = new Int32Array(2); int32[0] = 42; foo.set(int32); setTimeout(() => { int32[1] = 43; foo.set(int...
Opengraph URL: https://github.com/code11/engine/issues/104
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Storing an ArrayBuffer doesn't get retrigger when setting a new value","articleBody":"Producer `b` is only called once:\r\n```ts\r\nconst a: producer = ({ foo = update.value }) =\u003e {\r\n const int32 = new Int32Array(2);\r\n int32[0] = 42;\r\n foo.set(int32);\r\n setTimeout(() =\u003e {\r\n int32[1] = 43;\r\n foo.set(int32);\r\n });\r\n};\r\nconst b: producer = ({ foo = observe.value}) =\u003e {\r\n console.log(\"foo is\", foo);\r\n};\r\n```\r\n\r\nBut first setting the value to `null` and then async setting it to the next array buffer value, the `b` producer is called twice as it should:\r\n```ts\r\nconst a: producer = ({ foo = update.value }) =\u003e {\r\n const int32 = new Int32Array(2);\r\n int32[0] = 42;\r\n foo.set(int32);\r\n setTimeout(() =\u003e {\r\n int32[1] = 43;\r\n foo.set(null);\r\n setTimeout(() =\u003e {\r\n foo.set(int32);\r\n })\r\n });\r\n};\r\n```\r\nThis has to do with the comparison logic as I've tested with different values in the buffer/different buffers and it still doesn't retrigger on update.\r\n","author":{"url":"https://github.com/dumconstantin","@type":"Person","name":"dumconstantin"},"datePublished":"2020-12-01T13:49:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/104/engine/issues/104"}
| 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:9c468437-97c1-a2bc-702f-5ae45eeffbbf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF2C:1AC8B1:45A6F:5AA95:6990904E |
| html-safe-nonce | 6219e4ef198997fbd6cef6a3886b944aad6769e309bb34f9a417b9adf4890943 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjJDOjFBQzhCMTo0NUE2Rjo1QUE5NTo2OTkwOTA0RSIsInZpc2l0b3JfaWQiOiI3NTQ3ODE5NjUwNTEzNDA4MDc4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4d3d24f3fc7b4123be8701d3afa387c41f1675401a020446b06c8c4b7e08b54e |
| hovercard-subject-tag | issue:754410741 |
| 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/code11/engine/104/issue_layout |
| twitter:image | https://opengraph.githubassets.com/96082e691844f7628b8d397d02161fc47a87a609ef57365f0ca3f93eab608023/code11/engine/issues/104 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/96082e691844f7628b8d397d02161fc47a87a609ef57365f0ca3f93eab608023/code11/engine/issues/104 |
| og:image:alt | Producer b is only called once: const a: producer = ({ foo = update.value }) => { const int32 = new Int32Array(2); int32[0] = 42; foo.set(int32); setTimeout(() => { int32[1] = 43; foo.set(int32); }... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dumconstantin |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/code11/engine git https://github.com/code11/engine.git |
| octolytics-dimension-user_id | 3459120 |
| octolytics-dimension-user_login | code11 |
| octolytics-dimension-repository_id | 255651675 |
| octolytics-dimension-repository_nwo | code11/engine |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 255651675 |
| octolytics-dimension-repository_network_root_nwo | code11/engine |
| 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 | 3b33c5aedc9808f45bc5fcf0b1e4404cf749dac7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width