Skip to content

Commit

Permalink
Update optimizer.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Jan 20, 2024
1 parent 3d8f2dc commit 0429b66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/forgetti/src/core/optimizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ export default class Optimizer {
const expr = t.objectExpression([
t.objectProperty(
t.identifier('current'),
init || t.identifier('undefined'),
init || t.unaryExpression('void', t.numericLiteral(0)),
),
]);
return this.createMemo(expr, true, 'ref');
Expand Down

0 comments on commit 0429b66

Please sign in to comment.