Skip to content

Commit

Permalink
js
Browse files Browse the repository at this point in the history
  • Loading branch information
matthova committed Mar 5, 2024
1 parent 104b4f5 commit 6998928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/common-patterns/layout-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ export default function LayoutMode() {
}, []);

React.useEffect(() => {
discordSdk.subscribe("ACTIVITY_LAYOUT_MODE_UPDATE", (handleLayoutModeUpdate);
discordSdk.subscribe("ACTIVITY_LAYOUT_MODE_UPDATE", handleLayoutModeUpdate);
return () => {
discordSdk.unsubscribe("ACTIVITY_LAYOUT_MODE_UPDATE", (handleLayoutModeUpdate);
discordSdk.unsubscribe("ACTIVITY_LAYOUT_MODE_UPDATE", handleLayoutModeUpdate);
};
}, [handleLayoutModeUpdate]);
}
Expand Down

0 comments on commit 6998928

Please sign in to comment.