mirror of
https://github.com/discordjs/discord.js.git
synced 2026-09-18 01:07:26 +00:00
lazy() used defaultValue ??= cb(), so a callback returning null or undefined was never cached and re-ran on every call, breaking the compute-once contract (any side effect in the callback repeated). Track a called flag instead of relying on value nullishness.