Git Product home page Git Product logo

Comments (3)

ellbee avatar ellbee commented on May 22, 2024

Hi @gerhardsletten, that should work fine. If you can provide a runnable example of this not working I'll take a look.

from reselect.

gerhardsletten avatar gerhardsletten commented on May 22, 2024

It works, but should not the items.filter... be cached?

In this application I have this list of items, and when I first enter an item it is runned, I then returned back to the list, but when I reenter the same item (same id) the filter-code is runned again. This is where I thought reselect should cache the returned content..

from reselect.

ellbee avatar ellbee commented on May 22, 2024

Yes, we meant the same thing, sorry if I wasn't clear. By "it should work" I meant it should cache when the arguments haven't changed.

Have you checked this question from the FAQ?

https://github.com/reactjs/reselect#q-why-is-my-selector-recomputing-when-the-input-state-stays-the-same

I will need to see an example where Reselect is not behaving as you expect if I am going to be able to help further.

from reselect.

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.