Skip to content

Commit

Permalink
fix(useStorageAsync): correct ssr handler (#3703)
Browse files Browse the repository at this point in the history
  • Loading branch information
Doctor-wu committed Jan 9, 2024
1 parent b6d8f1e commit c197e8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/useStorageAsync/index.ts
Expand Up @@ -60,7 +60,7 @@ export function useStorageAsync<T extends(string | number | boolean | object | n

if (!storage) {
try {
storage = getSSRHandler('getDefaultStorage', () => defaultWindow?.localStorage)()
storage = getSSRHandler('getDefaultStorageAsync', () => defaultWindow?.localStorage)()
}
catch (e) {
onError(e)
Expand Down

0 comments on commit c197e8b

Please sign in to comment.