You may know that #webpack plugins and loaders can emit errors and warnings, which are then displayed as part of the Stats output.
#webpack 4.39.0 adds another thing that plugins and loaders can emit: Logging output.
To support this there is now an integrated Logger API.
We were told <React.Suspense> is not ready and we shouldn't use it with urql. That's why we're releasing urql-exchange-suspense, so you can try out GraphQL with suspense right now! 🙃
🦄 Demo: codesandbox.io/s/urql-client…
🥫 Repo: github.com/FormidableLabs/ur…
⚠️ Use at your own risk
Very well written post explaining the neat things Node 12 launched, there were quite a few.
Zero cost async stack traces is one of my favourites, as well as worker threads and of course making progress on JS modules.
Twitterverse! I am looking for a venue in Stockholm to host a @QueerJS meetup at on the day before @nordicjs (Oct 9). Anyone? RTs are welcome, DMs are open. 🏳️🌈💻
Lightyear is slowly maturing. It's being tried out with success in larger applications (thanks @albertogasparin!), it now has better infrastructure and I just now released 0.2.2 which contains a fix for a context bug. It's getting there!
github.com/Ephem/react-light…
📣 Modern Script Loading
If you're implementing module/nomodule, this might help clarify the trade-offs and options you have available.
jasonformat.com/modern-scrip…
I set up my first CircleCI-config yesterday. I'm pretty proud this commit log doesn't contain any swearing.. 🤬
Actually a nice experience compared to some CI-tools I've used. 😀
Most component snapshot tests are really just a worse version of screenshot tests. Test your outputs. Snapshot what gets rendered, not the underlying (volatile!) markup.
We use Chromatic by @chromaui, which takes screenshots of our Storybook stories. It's worked wonders for us.
I'm toying with the idea of writing up a conference CFP around suspenseful server rendering. I have some ideas, but what would YOU like to hear about in that area?
I also tried it with the inert script type approach. It was only modestly better
than the object literal approach (likely due to DOM overhead).
Here's the summary.
JSON string is clear winner:
By popular demand (@capajj), here is an example of using Apollo to fetch data on the server side with a single asynchronous render pass using react-apollo-hooks and react-lightyear! 💫
github.com/Ephem/react-light…