When Deno premiered its version 1.0.0, everyone was on the Deno hype train. And one of the most interesting feature about Deno is that external modules are imported using direct URLs, so rather than downloading a module then store metadata on some
package-lock.json-like file, Deno uses URLs which the runtime will download and cache the module locally for future usage. But if you need to have some kind of lockfile, Deno can do this too, which you can read more on the manual about integrity checking.
And speaking of modules, lots of third party modules are being submitted on deno.land/x…
getInitialPropsfunction and its mysterious object properties — updated March 2020
Sometime around 2018, I was working on a web app using Next.js on an older version. At the time, one of the features of Next.js is that it supports initial data population using the
getInitialProps static method, which means that you can populate the page component
props before loading the page (e.g. fetching news feeds).
The latest docs for Next.js is available on their official website. At version 9.1.7 and before, the docs was published on GitHub. Specifically at the “Fetching data and component lifecycle” section, it shows how to use
getInitialProps and what parameters that can be destructured. …