Skip to content

Commit

Permalink
Add state to useEffect to avoid extra updates
Browse files Browse the repository at this point in the history
  • Loading branch information
SantosGuillamot committed Jul 6, 2023
1 parent f3f579e commit a5d70f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/view-transitions.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ directive(
}

return evaluate(key, { context: contextValue });
});
}, [state.core.navigation.viewTransitionKey]);
});
}
);
Expand Down

0 comments on commit a5d70f0

Please sign in to comment.