Reactjs – rtk query without a useEffect
With RTK query, do we have to use an effect to run a query on mount? React Query runs the query on mount without an effect, so wondered if there was similar behaviour? const Component = ({ id }) =>…
With RTK query, do we have to use an effect to run a query on mount? React Query runs the query on mount without an effect, so wondered if there was similar behaviour? const Component = ({ id }) =>…