studentofjs / query-plus Goto Github PK
View Code? Open in Web Editor NEWfetch and process data in web worker, store in indexedDB.
License: MIT License
fetch and process data in web worker, store in indexedDB.
License: MIT License
Add tests for useFetch hook. react-hook-testing library or maybe just react-testing-library. Unsure on mocking indexedDB and a web worker, possibly a step too far
Ideas for improvements:
Use coordinates instead of mouse enter /mouse leave. This will allow for a larger area and we could do it by data attr instead of having to use a component.
Create a component that:
Update READ.ME with instructions and examples for the usePreFetch hook.
We are currently calling the api, regardless, to get the data to diff it against what is saved. If the endpoint always returns the same data, or updates on a semi regular basis (i.e. monthly) then it would be desirable to set the maxAge and not call the api if it hasn't expired. However, we will need a way to differentiate between this and endpoints where it would be desireable to check the api for new data on every call.
There appears to be two obvious solutions:
I feel the first option is easier to use, but more prone to mistakes.
Issues with deployment not including dependencies.
Use version 0.6.0
Build and deploy later
Are there any performance benefits to using this as a first layer of cache, before the space runs out?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.