(path: string)
| 126 | } |
| 127 | |
| 128 | export function multiModePath(path: string) { |
| 129 | if (process.env.MODE === 'ssr') { |
| 130 | return path; |
| 131 | } else { |
| 132 | return `?rand=${nanoid()}#${path}`; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | export function useResizeObserver( |
| 137 | elemFunc: () => Element | PromiseLike<Element>, |