Git Product home page Git Product logo

Comments (4)

toomuchdesign avatar toomuchdesign commented on July 19, 2024

Hi @ianobermiller,
currently the string|number limitation is imposed at the core level of the library.

Therefore custom cacheObject instances can only receive cache keys of type number or string.

Updating the library to let in any kind of cache key value is technically feasible but it's something I'd like to consider very carefully.

Do you have any significative use case for it?

Cheers!

from re-reselect.

toomuchdesign avatar toomuchdesign commented on July 19, 2024

Ping @ianobermiller. 😄
I came up with a possible solution to move the string/number restriction from the library to the cache implementation. Here is the work in progress PR #37.

I still cannot think of a real use case for it, but it's probably just me. BTW, happy to receive any feedback.

Cheers!

from re-reselect.

ianobermiller avatar ianobermiller commented on July 19, 2024

Hey! Sorry for that, not sure how I missed your original response! The use case was that we have an expensive computation that it done on an object in the redux store, and we want the entire object itself to be the key because there is no other identifier. Our case was something like transforming a JSON representation of rich text into the JSX needed to render it (or just from one format used for storage to another used for rendering).

from re-reselect.

toomuchdesign avatar toomuchdesign commented on July 19, 2024

Shipped with v2.0.0!

from re-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.