react-lazy-cache
react-lazy-cache copied to clipboard
Falsy values passed into fn as undefined
this.cache = lazyCache(this, {
cachedMyProp: {
params: ["myProp"],
fn(myProp) {
// prints undefined
console.log("myProp: ", myProp);
}
}
})
When myProp is 0, null, or "", the value of myProp passed into fn is undefined. It should be the original prop's value.