fix(cache): use cacheNoArgs for better performance

This commit is contained in:
JellyBrick
2024-08-04 16:31:07 +09:00
parent ac51f798c3
commit 59a5679cbb
7 changed files with 36 additions and 27 deletions

View File

@ -1,9 +1,9 @@
import { JSX } from 'solid-js';
import { css } from 'solid-styled-components';
import { cache } from '@/providers/decorators';
import { cacheNoArgs } from '@/providers/decorators';
const iconButton = cache(() => css`
const iconButton = cacheNoArgs(() => css`
-webkit-app-region: none;
background: transparent;