Skip to content

Commit

Permalink
perf: improve expression cache strategy on reearth/core (#488)
Browse files Browse the repository at this point in the history
  • Loading branch information
keiya01 committed Feb 23, 2023
1 parent 63bd4f7 commit 324e284
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Map/Layer/hooks.ts
Expand Up @@ -110,7 +110,7 @@ export default function useHooks(
});
});
},
[computedLayer],
[], // eslint-disable-line react-hooks/exhaustive-deps -- clear cache only when layer is unmounted
);

return {
Expand Down

0 comments on commit 324e284

Please sign in to comment.