Skip to content

Commit

Permalink
fix(notice-detail-store): prevent duplicate requests while loading data
Browse files Browse the repository at this point in the history
Signed-off-by: Wanjin Noh <wanjin@megazone.com>
  • Loading branch information
WANZARGEN committed Jan 7, 2025
1 parent 286a5b8 commit b94825d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/web/src/services/info/stores/notice-detail-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const useNoticeDetailStore = defineStore('notice-detail', () => {
const actions = {
getNoticePost: async (postId: string) => {
try {
if (state.loading) return;
state.loading = true;
const result = await SpaceConnector.clientV2.board.post.get<PostGetParameters, PostModel>({
post_id: postId,
Expand Down

0 comments on commit b94825d

Please sign in to comment.