Skip to content

Commit

Permalink
feat: queryRefetch를 위한 friendId 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ww8007 committed Jul 25, 2023
1 parent 10b79d8 commit e7b9a06
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/store/friend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,19 @@ export enum FriendType {
interface FriendStore {
selectedType: FriendType;
setSelectedType: (mode: FriendType) => void;
friendId: number;
setFriendId: (friendId: number) => void;
}

const useFriendStore = create<FriendStore>((set) => ({
selectedType: FriendType.Follower,
setSelectedType: (selectedType) => {
set({ selectedType });
},
friendId: 0,
setFriendId: (friendId) => {
set({ friendId });
},
}));

export default useFriendStore;

1 comment on commit e7b9a06

@vercel
Copy link

@vercel vercel bot commented on e7b9a06 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.