Nathaniel Tucker

Results 66 comments of Nathaniel Tucker

the config setting lines are setting the webpack config. This issue describes what happens to any bundle when the configuration is as such.

https://webpack.js.org/configuration/output/#outputglobalobject This is the webpack configuration. You can use with any project. Just set that to "(typeof self !== 'undefined' ? self : this)" and add bundle analyzer

https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/self

"(typeof self !== 'undefined' ? self : this)" is a string literal. In javascript this is signified by the quotation marks surrounding the other characters.

https://www.typescriptlang.org/dev/sandbox/ let's you do this today - unfortunately it doesn't bind into react so it's a bit of work getting it setup

Yeah, I currently do the transform using the TypeScript library itself (see https://github.com/data-client/rest-hooks/blob/master/website/src/components/Playground/typescriptTransform.ts#L4). This works to have it read typescript, but unfortunately doesn't give any of the benefits like seeing...

BTW: Love your library especially using CSS modules. :)

New design iteration - all the members of Resource are just there to provide the createEndpoint. This is more intuitively and tersely modeled as extending the Endpoint class. Then Resources...

Am I understanding correctly that even after the page loads (showing the fallback due to lack of SSR) it still doesn't load the data?

From the betas to final 18, React changed the nature of SSR - so it's basically avoiding re-renders when the data comes in. I'm working on a solution to this,...