Dom widget store (#2899)

This commit is contained in:
Chenlei Hu
2025-03-06 13:23:58 -05:00
committed by GitHub
parent caaf050728
commit f7be9157e0
7 changed files with 126 additions and 23 deletions

View File

@@ -312,3 +312,9 @@ export const paramsToCacheKey = (params: unknown): string => {
return String(params)
}
/**
* Generates a random 4-character string to use as a unique suffix
*/
export const generateRandomSuffix = (): string =>
Math.random().toString(36).substring(2, 6)