Pitfalls to avoid while using spread operatorRecently I was solving a problem that required multiple array operations and combine the array into a single object so naturally like every time I manipulate the array, I used the spread operator to merge two large arrays and used Array.reduce() func...Apr 28, 2024 · 4 min readmallikarjun.hashnode.dev
NgZone and Change Detection in AngularIn this article we will understand about ngZone but first we need to understand what is execution context. Execution Context Execution Context is the environment where the JavaScript file is scanned and is executed. When JavaScript Engine start the ...Dec 14, 2023 · 4 min readmallikarjun.hashnode.dev
Did you know about Entity State Adapter in NgRx?Discussion What is EntityStateAdapter? More discussion on why we need to use it. Implementing Entity, EntityState and EntityAdapter with NgRx. conclusion We use NgRx to maintain the state of our application. When we are building an application ...Oct 13, 2023 · 4 min readmallikarjun.hashnode.dev
Mutation and Immutability in JavaScriptDiscussion What are Mutation and Immutability? Why Immutability. Better tests and easy to debug. Functional Programming approach and pure functions. Deep copy v/s Shallow copy. Ways to create copies of objects What is Mutation and Immutabilit...Sep 17, 2023 · 4 min readmallikarjun.hashnode.dev
Handling Forms using Control Value Accessor interfaceThere might be scenarios we come across when we are building complex forms where we have a component which is having many template components(child) and each template component has a state and a form in it. We might face a few issues like Hard to ha...Sep 14, 2023 · 3 min readmallikarjun.hashnode.dev