rmarganti / jason-api Goto Github PK
View Code? Open in Web Editor NEW[RELOCATED ⛔️] Consume and manipulate JSON API standard data in Redux with scary ease.
Home Page: https://rmarganti.github.io/jason-api/
[RELOCATED ⛔️] Consume and manipulate JSON API standard data in Redux with scary ease.
Home Page: https://rmarganti.github.io/jason-api/
Because we are using Axios, we should be able to cancel requests initiated by the middleware. Will have to investigate a sensible API and implementation.
This option should be added to both the getCachedQuery()
selector and the withQuery
HOC.
In practice, users of the library will likely want to expand queries with a single Resource Object, while keeping queries with an array of Resource Objects simplified. Expanding a single Resource Object from an array is better handle at the item-specific component in order to avoid unnecessary re-render()'s.
Axios makes it easier for users to customize api requests (setting default headers, etc). Additionally, the current implementation isn't tested at all, and that's wack.
import Structure from 'jason-api/redux/middleware';
is preferred over
import Structure from 'jason-api/dist/redux/middleware';
API is pretty solid and unlikely to change much in the near future. Testing is a must.
Currently withQuery
will initiate a fetch every time a component mounts. It should support additional caching schemes:
cacheFirst
– Default to cached query but still fetch (current behavior).cacheOnly
– Only used cached queries. Do not initiate fetch.noCache
– Don't use cached queries.Add a subscribe
option that will re-poll the query at a given interval.
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.