amazing idea for a video. learning how useState worked under the hood and implementing a basic version helped me understand stale values much better. looking forward to watching all of this
Yes, we could combine all of the useStates into a single useReducer. The main difference is preference / implementation. I plan to cover this in a future video. It will be nice to show a refactor that has tests to make sure our refactor doesn't break anything.
I would appreciate video on testing itself ✌
upvote this guys
Great video 🎉.
1. Please add tutorials for testing.
2. How to prefetch using this
amazing idea for a video. learning how useState worked under the hood and implementing a basic version helped me understand stale values much better. looking forward to watching all of this
Damn I learned so much, and it gave me a teeny bit anxiety regarding some of my old fetch functions.
great thanks for sharing CJ
Would using useReducer makes any differences here ?
Yes, we could combine all of the useStates into a single useReducer. The main difference is preference / implementation. I plan to cover this in a future video. It will be nice to show a refactor that has tests to make sure our refactor doesn't break anything.
nice one. thanks cj & syntax 👏👌
amazing person
Nice job! Thanks CJ for the great content as always 😊✌🏻
Awesome
Great
I think making useAsyncState is more versatile than narrowing down to just fetching
That would be a fun one to implement as well. The main use case for something like useFetch is built in request cancellation and error handling.
Maybe implement cache as well for future video ? That would be interesting
Now use useReducer