Created a full stack application that contains a search input and whenever a user types the result will be updated automatically from the backend server.
Issue - When the user refreshes the page, the search data was lost.
Fix - This issue was fixed by caching the last searched query using the localStorage API and storing that last searched data in the local storage.
Comments