Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to fetch a single record #53

Open
koshuang opened this issue Mar 28, 2017 · 1 comment
Open

How to fetch a single record #53

koshuang opened this issue Mar 28, 2017 · 1 comment

Comments

@koshuang
Copy link

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?

@jsherbert
Copy link

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! 😭

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants