Closed SukkaW closed 1 year ago
I'd like to know the code that triggers this behavior, so that I'll know what the exact behavior causing this, but thanks for submitting this!
I'd like to know the code that triggers this behavior, so that I'll know what the exact behavior causing this, but thanks for submitting this!
I am using forgetti
in dashflare, one of my hobby react projects, with forgetti-loader
. As I said, I am not able to grab a minimum re-production yet.
@SukkaW I spot the issue now, it was from this line: https://github.com/lxsmnsyc/forgetti/blob/main/packages/forgetti/src/core/optimizer.ts#L725
I'll release a hotfix
Should be fixed in 0.4.3. Thank you for bringing up this issue!
I was playing with forgetti in some of my hobby react projects when this error happens:
It turns out that the second parameter of
memoizeIdentifier
could beundefined
. I don't know why and I am not able to grab a minimum re-production (yet!). For now, I just makememoizeIdentifier
skip whenid
is falsy.