DFDavi Figueiredoinblog.dav1.app·Sep 9, 2021 · 2 min readFuture JavaScriptTop-level await // index.js await myFunction() // no need to run it with async on top level. Object.hasOwn() const myObject = { name: 'dav1', age: 28 } Object.hasOwn(myObject, 'name') // true Error cause const parentError = new Error('Parent ...00
DFDavi Figueiredoinblog.dav1.app·Jul 25, 2021 · 1 min readHow to make fastboot work with USB 3.0I found out in one on a very particular blog post that links another post on MIUI China. This thing basically saved my life. One of the errors shown in fastboot is: press any key to shutdown Just create a register with those flags: reg add "HKEY_LO...00
DFDavi Figueiredoinblog.dav1.app·Jul 14, 2021 · 2 min readI speed-learned FlutterMy favorite thing about Hollywood hackers is how fast those nerds learn new platforms. I mean, The Hackerman enters the most advanced datacenter in the universe, and suddenly knows how to access every server in the room. Well, I've tested speed-learn...00
DFDavi Figueiredoinblog.dav1.app·Jul 14, 2021 · 2 min readReact Hooks equivalents on Component LifecycleIn React 16.8, the Hooks were introduced to reduce the complexity of the components lifecycle. This enables us to create components without visual logic (like React Router, that forces us to render a element). The useEffect() function runs every tim...00
DFDavi Figueiredoinblog.dav1.app·Jul 14, 2021 · 2 min readGracefully installing Firefox 67 on DebianBefore anything, notice that this installation will be unable to access your profile previously installed Firefox versions. Debian and other Linux distros use ESR versions, which makes you unable to use the package manager to install it. I highly re...00