Commit faf9f8c
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 drafts1 parent 17a3b20 commit faf9f8c
1 file changed
Lines changed: 412 additions & 0 deletions
0 commit comments