CodeCapi retweeted
Woah 🤯 Next.js 9.3 with Prisma is incredible.
◆ `getStaticProps` allows for direct DB queries, only ran at build time – not even included in browser JS bundle
◆ Prisma provides type-safe access to SQLite
◆ Auto-generated based on DB schema
CodeCapi retweeted
[code]capi (@codecapi) heeft een #vacature voor een Frontend developer in Amsterdam: fronteers.nl/vacaturebank/20…
CodeCapi retweeted
This is no joke. TTI (in an already fast app) dropped by .74 seconds! Just by switching from object literal to doing this:
`window.__REDUX_STATE__ = ${jsesc(JSON.stringify(startingState), { json: true, isScriptContext: true, wrap: true })}`
using: github.com/mathiasbynens/jse…
🚀 Perf tip: if your web app ships large JSON-like configuration as JavaScript object literals, consider using JSON.parse instead. It’s much faster, especially for cold loads! v8.dev/blog/cost-of-javascri…






