Coder Social home page Coder Social logo

Comments (3)

egeriis avatar egeriis commented on June 3, 2024

Hi @DimaelVertigo!

redux-json-api is build in the way that it maintains and structures your resources, this has a caveat that it doesn't keep a record of which resources were returned for a particular request.

This is part of the reason I have started working on https://github.com/redux-json-api/react-redux-json-api (name tbd) which helps with all of this while utilizing the awesomeness of having a normalized resource storage in redux 🙂

In the meantime, you'll have to keep state of the resource you want manually. I suggest storing references to the resources, e.g.

shownResources: [
 { id: 1, type: 'users' },
 { id: 2, type: 'users' },
 { id: 3, type: 'users' },
 { id: 4, type: 'users' },
 { id: 5, type: 'users' }
];

from redux-json-api.

DimaelVertigo avatar DimaelVertigo commented on June 3, 2024

Can I access data from payload and save them to the different object?

from redux-json-api.

dakota avatar dakota commented on June 3, 2024

Closing as stale.

from redux-json-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.