How do I fetch a post by ID without API and stop calling the API every time I navigate back to it?
In the posts
page, I fetch all posts as an array. It fetches all data, but every time I navigate to this page, an API call is fired. I don’t want to make redundant API calls. How can I prevent this behavior?