Skip to content

Commit

Permalink
fix(users): refresh user on route change
Browse files Browse the repository at this point in the history
  • Loading branch information
micahlt committed Dec 19, 2023
1 parent 0fffbf7 commit 2a54a60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UserPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ const UserPage = ({ route, navigation }) => {
}
});
}
}, [token]),
}, [token, route]),
);
const toggleFollow = () => {
setIsTogglingFollow(true);
Expand Down

0 comments on commit 2a54a60

Please sign in to comment.