Broadcasting Across Tabs with Local Storage and Storage EventSo, recently I stumbled upon an interesting issue where a user kept encountering the HTTP Error 403 — Forbidden while making API calls. I digged in and found that user was logged in on two different tabs simultaneously. Later on, they logged out from...Jan 20, 2024 · 2 min readmanojasarsa.hashnode.dev
call(), apply() and bind() - Three incredibly important JavaScript methodsWhat's the difference between call(), bind() and apply()? How to use them? How does "this" keyword work differently with these methods? What is function borrowing? Why they are not easy to wrap up in the head? Most Javascript programmers have these c...Jun 10, 2022 · 6 min readmanojasarsa.hashnode.dev
State management with useContext and useReducer in ReactGood day, everyone! I hope you are well. I'm assuming you have a basic understanding of state management, useState, reducer(), and react terminologies. Let's understand first, Why we need State management ? It helps data actually to flow from your a...May 12, 2022 · 6 min readmanojasarsa.hashnode.dev
Understand Different Promise methods() in JavaScriptPromises are an important part of JavaScript. They are used to handle asynchronous operations which prevent the blocking of the call stack or main thread of execution. JavaScript provides some static or built-in promise methods. But, Why do we need ...2May 11, 2022 · 5 min readmanojasarsa.hashnode.dev