Answer the question
In order to leave comments, you need to log in
Is memoization applied correctly?
For example, there is a function that pulls out something needed by the key from the passed string (inside the regurak)
function getValueByType(type, someString ) {
const value = ....
return value;
}
const getListId = memoizeOne((someString) => getValueByType('list', someString));
const getItemId = memoizeOne((someString) => getValueByType('item', someString));
const listId = getListId(someString);
const item = getItemId(someString);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question