mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
track feeds cache states for skeleton
This commit is contained in:
@@ -23,6 +23,14 @@ const useGeneralStore = create((set) => ({
|
||||
editedComment: '',
|
||||
setEditedComment: (comment) => set({ editedComment: comment }),
|
||||
|
||||
feedCacheStates: {},
|
||||
setFeedCacheState: (address, isCached) => set((prev) => ({
|
||||
feedCacheStates: {
|
||||
...prev.feedCacheStates,
|
||||
[address]: isCached,
|
||||
}
|
||||
})),
|
||||
|
||||
isAuthorDelete: false,
|
||||
setIsAuthorDelete: (isAuthorDelete) => set({ isAuthorDelete }),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user