Skip to content

Commit f799461

Browse files
committed
feat: add versioning to read post storage for better state management
1 parent 04a7d56 commit f799461

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/stores/readPosts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const useReadPosts = create<ReadPostsStore>()(
4343
}),
4444
{
4545
name: 'read_post_ids_storage',
46+
version: 0,
4647
partialize: (state) => ({ readPostIds: state.readPostIds }),
4748
onRehydrateStorage: () => (state) => {
4849
if (state) {

0 commit comments

Comments
 (0)