Skip to content

Commit

Permalink
[lib] Restart BaseAutoJoinCommunityHandler when FID changes
Browse files Browse the repository at this point in the history
Summary:
This diff addresses [ENG-9539](https://linear.app/comm/issue/ENG-9539/restart-autojoincommunityhandler-after-fid-changes).

Depends on D13627

Test Plan: To be honest, I haven't tested this... I think the change is pretty predictable and safe

Reviewers: varun

Reviewed By: varun

Subscribers: tomek

Differential Revision: https://phab.comm.dev/D13628
  • Loading branch information
Ashoat committed Oct 8, 2024
1 parent 1118e26 commit 836305a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/components/base-auto-join-community-handler.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function BaseAutoJoinCommunityHandler(props: Props): React.Node {
React.useState<?CommunitiesToAutoJoin>();

const prevCanQueryRef = React.useRef<?boolean>();
const canQuery = loggedIn;
const canQuery = loggedIn && !!fid;

React.useEffect(() => {
if (canQuery === prevCanQueryRef.current) {
Expand Down

0 comments on commit 836305a

Please sign in to comment.