Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nachocodoner committed Jul 22, 2024
1 parent ef724b5 commit f7003ba
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/tasks-common/tasks-common.client.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ const App = () => {
const firstTask = tasks[0];
const lastTask = tasks[tasks.length - 1];

const onAction = useCallback(() => {
if (!reactive) fetchTasks();
const onAction = useCallback(async () => {
if (!reactive) {
await fetchTasks();
}
}, [reactive]);

const onAddClick = useCallback(async () => {
Expand Down

0 comments on commit f7003ba

Please sign in to comment.