ynnckth / pizza-time

Exploring and implementing state-of-the-art practices and tech when using ReactJS
0 stars 0 forks source link

Use RTK Query instead of thunks for async actions #2

Closed ynnckth closed 2 years ago

ynnckth commented 2 years ago

Replace one async action that interacts with an API with RTKQ to see the differences between RTKQ and Thunk when using redux-toolkit. Removes the need for query library like SWR or similar. Also removes need for writing hooks encapsulating fetching logic.