ALAndrey Lechevinleechy.dev·Nov 17, 2020 · 3 min readRunning promises sequentiallyToday's JavaScript is asynchronous. Like, all of it. If a few years ago, there were a lot of discussions about data transformations. Today's most important topics are all about, should app await, or respond instantly to the user and redraw later when...00
ALAndrey Lechevinleechy.dev·Nov 15, 2020 · 6 min readHow to copy, delete, or move a document in FirestoreTo move a Firestore document from one collection to another, including all existing sub-collections, we will need a Cloud function that copies all documents and then delete existing ones. In this post, you'll find working functions to use with some e...03MGT
ALAndrey Lechevinleechy.dev·Oct 18, 2020 · 4 min readHow to keep `this` pointing to the Stencil component with a DOM event?I'm continuing to play with Stencil.js. This time I'm working with forms. One of the main things we can do with any form is submitting the data. And because we are not going to reload the page, we have to intercept the submit event and do something w...00
ALAndrey Lechevinleechy.dev·Sep 28, 2020 · 2 min readAvoid render of the children in the Stencil.js componentsIf you are used to React.js components, you know that you are deciding to show or not the children elements. And if you don't put { children } in your output, there will be nothing on the page, plus the components themselves are not going to run thei...00
ALAndrey Lechevinleechy.dev·Sep 11, 2020 · 1 min readUsing AVIF as a background imageWell, you probably already heard that AVIF has landed. If not, click on the link and read. But there is a problem with all these new file formats. Despite their support by the element, when you want to use it as a background image — you don't have a ...01S