
Security News
TypeScript is Porting Its Compiler to Go for 10x Faster Builds
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
react-diode
Advanced tools
Endpoint agnostic, unidirectional data fetching for React application
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
react-diode
is published semi automatically via GitHub Action. You just need to update the version in package.json
via npm version
and push to master alongside git tag.
# First pull latest master
git pull origin master
# Then determine the next version
npm version patch # for bugfix
npm version minor # for new feature
npm version major # for breaking change
# Push changes to GitHub
git push origin master --follow-tags
MIT
FAQs
Endpoint agnostic, unidirectional data fetching for React applications
The npm package react-diode receives a total of 14 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
TypeScript is porting its compiler to Go, delivering 10x faster builds, lower memory usage, and improved editor performance for a smoother developer experience.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.