redux-crud icon indicating copy to clipboard operation
redux-crud copied to clipboard

How to fetch a single record

Open koshuang opened this issue 8 years ago • 1 comments

Hi,

In my case I would like to just fetch a single record like what we are using RESTful API like GET /users/1.

How should I do if I want to use redux-crud to meet my goal?

koshuang avatar Mar 28 '17 15:03 koshuang

As I see it redux-crud is concerned with managing data once it has arrived in your app. It has no opinions whatever about how that data gets there - from an API, user input, etc.

An example in the docs gives code demonstrating how you might handle the data from an API call.

I feel like there's definitely room for a library that integrates with redux-crud to handle API calls; I've written one for a side project but I worry that it bakes in too many blithe or just plain bad assumptions to be useful to anybody else! 😭

jsherbert avatar May 10 '17 19:05 jsherbert