alduino / api-utils Goto Github PK
View Code? Open in Web Editor NEWAPI client utilities based on swr for machine-generated clients
License: MIT License
API client utilities based on swr for machine-generated clients
License: MIT License
Allowing a null request means it has to be possible to have a null
return, which means we have to handle this case. Seeing as handling this case increases code complexity and you rarely, if ever, would need to use a null
query (unlike swr where you might, here requests are sent when you specifically tell them to, so you can check yourself if you want to just not send it), it would make more sense to not have this as an option.
The api provider is re-exported from a library, so it should only affect that library.
Currently, the provider is just a global React context that has one instance created in api-utils. Instead, each library should create one for itself, maybe by calling a function that returns the ApiProvider
component and the useSwr
hooks (or it could be a parameter passed to them, or a value in the Endpoint
s)
There's a LICENSE.md
for the MIT license but it's not specified in the package.json file.
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.