Skip to content

Commit

Permalink
Made some adjustments to deploy this app.
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Bergström committed May 23, 2024
1 parent 41eb32d commit 5cfbaa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/read-mode-flow.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function ReadModeFlow({ cookiePermission, savedPageIndex, setSave
} else {
console.error('Error: There is no saved page index or cookie.');
}
}, [pefObject, bookView]);
}, [pefObject, bookView, savedPageIndex]); // remove savedPageIndex and use callback

useEffect(() => {
if (autoSave) {
Expand Down

0 comments on commit 5cfbaa7

Please sign in to comment.