Closed moeriki closed 8 years ago
@Moeriki Yes unfortunately you relied on bug in previous versions.. Resolvers are supposed to normalize the argument which is then passed in resolved form to memoized function.
What you probably wanted to use was normalize
option. Unfortunately it's not documented well yet, for now see explanation here
I'm closing it, but if still there's something clear please let me know.
I suspected something like this :) Thanks for the clarification. I updated my code.
const memoized = (func) =>
memoize(func, {
normalizer: ([params]) => JSON.stringify(params),
})
Since the
0.3.10
update my memoized function incorrectly returns the result of the resolver instead of passing on the input.My simplified code.
Expected
Actual
I understand from the commits that a bug in the resolvers has been fixed. Should I update the implementation of my resolver or would this be a regression?