Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-diode
Advanced tools
Endpoint agnostic, unidirectional data fetching for React application
We love Relay, but converting all of our APIs into GraphQL takes time. and some APIs are still awkward to be expressed into GraphQL schema (for example our translation API). So we built Diode by taking what's best from Relay and removing what doesn't work for us.
Diode is an early project, expect breaking changes every (minor) version update.
Unidirectional
Data requirement flows one direction from child component to parent component so root component will know all data the child need. No more confusion where the data comes from (or what component should fetch what data) as root component data is the only source of truth.
Declarative
Declare your data requirements declaratively, no need to manually call API in componentDidMount
and use this.state
to store data from server. All your data in component will be available as props.
Colocation
Query next to views that rely on them. See your data requirement in the same place that your view resides.
Endpoint agnostic
Every query will have its own endpoint and configuration on how to call them. You can use any HTTP-based endpoint, including REST and yes, GraphQL.
$ npm install react-diode
See /examples
directory
MIT
FAQs
Endpoint agnostic, unidirectional data fetching for React applications
The npm package react-diode receives a total of 18 weekly downloads. As such, react-diode popularity was classified as not popular.
We found that react-diode demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.