Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
react-get-data
Advanced tools
A small react wrapper for fetching data from remote services.
Each service is a class:
const services = {
account: {
async getAccount(accountId) {
const { data } = await axios.get(`/accounts/${accountId}`)
return data
}
}
}
import { GetData, ServiceProvider } from 'react-get-data'
<ServiceProvider services={services}>
<GetData
service="account"
method="getAccount"
args={['id0']}
whilePending={GetAccountSpinner}
>{(account, error) =>
error
? <GetAccountError error={error} />
: <DisplayAccount account={account} />
}
</GetData>
</ServiceProvider>
import { GetData, ServiceProvider } from 'react-get-data'
<ServiceProvider services={services}>
<GetData
service="account"
method="getAccount"
args={['id0']}
>{
account => <DisplayAccount account={account} />
}</GetData>
</ServiceProvider>
Is a render-prop-enabled component which represents a call for a remote service.
It hooks on componentWillMount
and call service
's member method
with args
, and renders whilePending
while waiting response.
service
- Required, name of service to pick from contextmethod
- Required, name of service's method to callargs
- Optional, list of arguments of methodswhilePending
- Optional, this component will be displayed while GetData
waiting response from serviceIs a context provider for a dictionary of services.
services
- Required, dictionary of servicesFAQs
Solution for fetching data from service-oriented api layer
The npm package react-get-data receives a total of 0 weekly downloads. As such, react-get-data popularity was classified as not popular.
We found that react-get-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.