0 votes
in ReactJS by

What is reselect and how it works?

1 Answer

0 votes
by

Reselect is a selector library (for Redux) which uses memoization concept. It was originally written to compute derived data from Redux-like applications state, but it can't be tied to any architecture or library.

Reselect keeps a copy of the last inputs/outputs of the last call, and recomputes the result only if one of the inputs changes. If the the same inputs are provided twice in a row, Reselect returns the cached output. It's memoization and cache are fully customizable.

Related questions

0 votes
asked Jan 30, 2021 in ReactJS by SakshiSharma
0 votes
asked Mar 1, 2020 in ReactJS by RShastri
0 votes
asked Nov 26, 2019 in ReactJS by AdilsonLima
0 votes
0 votes
asked Sep 6, 2023 in HTML by Robindeniel
...