Skip to content

Commit

Permalink
fix: 🐛 add actionState to fetchData dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonWarrenUK committed Dec 17, 2024
1 parent dc30cf6 commit 4626756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/needs/next-actions/components/NextActionsDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function NextActionsDisplay() {
}

fetchData();
}, [database, chainEnd]);
}, [database, chainEnd, actionState]);

useEffect(() => { /* Log Mode Change */
console.log(`...to ${mode}.`);
Expand Down Expand Up @@ -207,8 +207,8 @@ export default function NextActionsDisplay() {
console.error("Error creating Action:", error);
}

console.log(`Action State: ${actionState}`);
setActionState((prev) => prev + 1);
console.log(`Action State: ${actionState}`);
}
};

Expand Down

0 comments on commit 4626756

Please sign in to comment.