Disable all inputs in form
When you want to disable all input
s in form
after submitting, you can use fieldset
for the purpose.
Handling large JSON file in Deno
Conclusion
Avoid using large JSON file, but use CSV or other easy-to-parse file format for stream API.
Please tell me if you have a better solution.
useSWR cache management
Next.js + useSWR
is awesome and gives you a great experience for frontend dev.
But they also sometimes cause trouble, and I explain one of them in this post.
Node.js Stream
I often forget Node.js stream API and usage.
What For?
As the post says, it is for:
- Memory efficiency
- Time efficiency
This API helps when you do batch operation like processing 100,000 records of a table of PostgreSQL, for example.