Skip to content

Commit faf9f8c

Browse files
authored
features (local storage draft): useLocalStorageDraft hook (#191)
- normalizeDraftKey -> adds the defined suffix to the draft key - denormalizeDraftKey -> strips the added suffix from draft key when need - useLocalStorageDraft -> main hook - useFormDraft -> form adaptation of the main hook - getDraftStorageStats -> storage statistics - cleanupOldDrafts -> clean up old drafts
1 parent 17a3b20 commit faf9f8c

1 file changed

Lines changed: 412 additions & 0 deletions

File tree

0 commit comments

Comments
 (0)