React context api dispatch does not dispatch values when called when called
I am creating an app with reactjs and I am using context api as my state management tool but the dispatch does not dispatch the values city shows undefined even after the dispatch has been called. SearchContext Here I created the initial state where the city is undefined, date is an empty array and option… Read More React context api dispatch does not dispatch values when called when called