Title: 0.18+ not reloading function components · Issue #367 · nullstack/nullstack · GitHub
Open Graph Title: 0.18+ not reloading function components · Issue #367 · nullstack/nullstack
X Title: 0.18+ not reloading function components · Issue #367 · nullstack/nullstack
Description: 0.18+ It's referencing the old (before code changes) component. It doesn't happen with klasses because they use a hash to ensure the most recent is being used. if (isFunction(node)) { const context = node.type.name ? scope.generateContex...
Open Graph Description: 0.18+ It's referencing the old (before code changes) component. It doesn't happen with klasses because they use a hash to ensure the most recent is being used. if (isFunction(node)) { const context...
X Description: 0.18+ It's referencing the old (before code changes) component. It doesn't happen with klasses because they use a hash to ensure the most recent is being used. if (isFunction(node)) { const...
Opengraph URL: https://github.com/nullstack/nullstack/issues/367
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"0.18+ not reloading function components","articleBody":"0.18+\r\n\r\nIt's referencing the old (before code changes) component. It doesn't happen with klasses because they use a hash to ensure the most recent is being used.\r\n\r\n```js\r\n if (isFunction(node)) {\r\n const context = node.type.name ? scope.generateContext(node.attributes) : node.attributes\r\n const children = node.type(context)\r\n node.children = [].concat(children)\r\n for (let i = 0; i \u003c node.children.length; i++) {\r\n await generateBranch(siblings, node.children[i], `${depth}-${i}`, scope)\r\n }\r\n return\r\n }\r\n```\r\n\r\nrepro:\r\n\r\n1. create a class component (eg Application.jsx)\r\n2. create a function component (eg Hero.jsx) and import on Application\r\n3. Update Hero\r\n\r\nexpected\r\n- changes to show up\r\n\r\nactual\r\n- no changes\r\n\r\nif Hero is converted to a class it works as expected","author":{"url":"https://github.com/brunolm","@type":"Person","name":"brunolm"},"datePublished":"2023-07-01T16:20:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/367/nullstack/issues/367"}
| 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:7a3cffe2-2f64-005a-eec6-689f0e0b9e14 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9938:7C146:1882823:217E24F:698F2240 |
| html-safe-nonce | 5bca7ecd83ef3582fd83ffa0dcdda4bb0975b1faa4a87799ce290b9d43c018be |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTM4OjdDMTQ2OjE4ODI4MjM6MjE3RTI0Rjo2OThGMjI0MCIsInZpc2l0b3JfaWQiOiI5MTQxNTEzODQ0NjE0NDM5NDg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3939387044cb47c18b67b261f0a583d7986f4a1efdb6e6635172030b987295cd |
| hovercard-subject-tag | issue:1784057739 |
| 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/nullstack/nullstack/367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6e090312f84e3409c56aec0f3eec16e10b70fc79ac4a59dade6059a8444017c4/nullstack/nullstack/issues/367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6e090312f84e3409c56aec0f3eec16e10b70fc79ac4a59dade6059a8444017c4/nullstack/nullstack/issues/367 |
| og:image:alt | 0.18+ It's referencing the old (before code changes) component. It doesn't happen with klasses because they use a hash to ensure the most recent is being used. if (isFunction(node)) { const context... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brunolm |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6102991c714c1a6a27d05fb4f96ea6ca87a6750b4f093b95cc57ed1b84b145a1 |
| turbo-cache-control | no-preview |
| go-import | github.com/nullstack/nullstack git https://github.com/nullstack/nullstack.git |
| octolytics-dimension-user_id | 63256628 |
| octolytics-dimension-user_login | nullstack |
| octolytics-dimension-repository_id | 167901193 |
| octolytics-dimension-repository_nwo | nullstack/nullstack |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 167901193 |
| octolytics-dimension-repository_network_root_nwo | nullstack/nullstack |
| 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 | 1f991dff419ee6d80807c889c647c151386ba074 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width