This helpful, but your code is hard to read. Is it possible you can refractor it to be easier to read? Like where you use useTableInstance custom hook, own custom provider with context and use Reducer, etc....
Edit:
I still want to give the credit to the original author who published the work. Without him, I couldn't get the chance to do this.
Thanks for using this. The code style and purpose were majorly inspired from the examples from react query docs. The intent was to explain how this can be done in one file so that people can read and understand without navigating to multiple files.
Yes, of course, production grade code can always be written as and where it is seen fit.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This helpful, but your code is hard to read. Is it possible you can refractor it to be easier to read? Like where you use useTableInstance custom hook, own custom provider with context and use Reducer, etc....
Edit:
I still want to give the credit to the original author who published the work. Without him, I couldn't get the chance to do this.
In case anyone wants the refactored version of mine: codesandbox.io/s/server-side-netwo...
Thanks for using this. The code style and purpose were majorly inspired from the examples from react query docs. The intent was to explain how this can be done in one file so that people can read and understand without navigating to multiple files.
Yes, of course, production grade code can always be written as and where it is seen fit.