NPNico Petriinnicopetri.hashnode.dev·Jul 12, 2024 · 2 min readThe Dark Side Of shareReplay in RxJS.The shareReplay operator of RxJS is one of the most frequently used operators. It simply provides a copy for all subsequent subscribers so that the previous, usually complex, operation does not have to be performed again. This is the case in Angular,...00
NPNico Petriinnicopetri.hashnode.dev·Feb 25, 2022 · 4 min readHow Do I Encapsulate My AlpineJS LogicRecently, AlpineJS becomes more and more popular. AlpineJS is to Javascript what TailwindCSS is to CSS. This means, that like in TailwindCSS, you are applying your code directly into your HTML. This is super handy, but as always, there are some traps...00
NPNico Petriinnicopetri.hashnode.dev·Feb 21, 2022 · 1 min readWriting An AlpineJS-ExtensionI would like to show you how easy it is to extend AlpineJS with a small example. The small example implements a timeout directive, which can be used to execute an action after a certain time. To create your own directive, you need this simple snippet...00
NPNico Petriinnicopetri.hashnode.dev·Jan 11, 2022 · 2 min readArming Your Forms Against SpambotsIf you find yourself in a situation where you cannot or simply don't like to use a captcha, then this method might be helpful for you. The spam hell Getting a lot of spam is always painful. It floods your inbox and the risk of deleting or missing an ...00