Index Of /

HomeWho am IBadges
Blog Author Picture

Andrey Lechev

My name is Andrey Lechev, but you can call me Leechy. I’m good at HTML, CSS, and JavaScript in the browsers. Not bad at some server stuff like Node.js, SQL, PHP, Python and Parser.

Running promises sequentially

Nov 17, 20203 min read 89 views

Today'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...

How to copy, delete, or move a document in Firestore

Nov 15, 20206 min read 2.0K views

To 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...

How to keep `this` pointing to the Stencil component with a DOM event?

Oct 18, 20204 min read 63 views

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...

Avoid render of the children in the Stencil.js components

Sep 28, 20202 min read 99 views

If 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...

Using AVIF as a background image

Sep 11, 20201 min read 63 views

Well, 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 ...

Infinite Scroll for Ionic/React

May 17, 20203 min read 283 views

On one of the Ionic/React applications, I'm working on, we needed an Infinite Scroll component. Currently, Ionic's ion-infinite-scroll is not available as a React component, so we had to hack the solution by ourselves. The only available component th...

© 2021 Index Of /

PrivacyTerms
Proudly part of