Skip to content

Commit

Permalink
fix: rename _clearTagCache
Browse files Browse the repository at this point in the history
  • Loading branch information
chenrongyan.cry committed Aug 24, 2021
1 parent 27e91fd commit 4d110b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/jsx-compiler/src/modules/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ function isImportAppJSON(mod, resourcePath, sourcePath, type) {
function addClearKeyCache(renderFunctionPath) {
const fnBody = renderFunctionPath.node.body.body;
// this._clearKeyCache && this._clearKeyCache();
const clearExp = t.memberExpression(t.thisExpression(), t.identifier('_clearTagCache'));
const clearExp = t.memberExpression(t.thisExpression(), t.identifier('_clearKeyCache'));
fnBody.push(
t.expressionStatement(
t.logicalExpression('&&',
Expand Down

0 comments on commit 4d110b8

Please sign in to comment.