Title: feat: Add runtime errors overlay to show undefined nodes location by GuiDevloper · Pull Request #372 · nullstack/nullstack · GitHub
Open Graph Title: feat: Add runtime errors overlay to show undefined nodes location by GuiDevloper · Pull Request #372 · nullstack/nullstack
X Title: feat: Add runtime errors overlay to show undefined nodes location by GuiDevloper · Pull Request #372 · nullstack/nullstack
Description: TL;DR: UndefinedNodesOverlay-speed.mp4 Full component used in the test above: NullstackOverlayTester.tsx Important notes Two routes were added for when environment.development === true (written in server/devRoutes.js): /nullstack-dev-server/get-file?fileName=full/path/to/File.jsx&lineNumber=20&columnNumber=2: Returns the formatted file pointing exactly where the undefined error happens and the relativePath to it (for showing purposes). /nullstack-dev-server/open-editor?fileName=full/path/to/File.jsx:20:2: Opens editor in that line/column using Evan You's launch-editor. The default editor can be configured, I moved that possibility to a env variable NULLSTACK_EDITOR defaulting to VSCode. Only works in development mode (when __source object is injected for every node by SWC & Babel), otherwise throws saying to retry that route in development mode to see the source of error. The errors are always cleared at every generateTree call, keeping it all updated at every rerender step. Throws became the last-case warning, only happening in production (__source === undefined) or when the main component tries to render an undefined node itself, like: import Nullstack from 'nullstack' export default class Application extends Nullstack { render() { return } }
Open Graph Description: TL;DR: UndefinedNodesOverlay-speed.mp4 Full component used in the test above: NullstackOverlayTester.tsx Important notes Two routes were added for when en...
X Description: TL;DR: UndefinedNodesOverlay-speed.mp4 Full component used in the test above: NullstackOverlayTester.tsx Important notes Two routes were added for when en...
Opengraph URL: https://github.com/nullstack/nullstack/pull/372
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:6c6d12ff-b2ae-7bef-d777-a4c66eab5d8f |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D75E:39604:A485:D01C:698E54A9 |
| html-safe-nonce | 850fff1efca365499888ee36ebf30d15bca1277231a665bb80592d76d7d799d3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzVFOjM5NjA0OkE0ODU6RDAxQzo2OThFNTRBOSIsInZpc2l0b3JfaWQiOiIyODgzMDcxMDg0OTY1Mjg3MDgxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 88dac23e5432939c27f153c1610c36820c2af7f4a603aa4b2f3b52ecdab41b3a |
| hovercard-subject-tag | pull_request:1467463629 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,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/nullstack/nullstack/pull/372/checks |
| twitter:image | https://avatars.githubusercontent.com/u/31557312?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/31557312?s=400&v=4 |
| og:image:alt | TL;DR: UndefinedNodesOverlay-speed.mp4 Full component used in the test above: NullstackOverlayTester.tsx Important notes Two routes were added for when en... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc |
| 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 full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 9416d07f3607b074b276ccc81546278f89608a08 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width