Skip to content

Commit 8fee512

Browse files
committed
unmount/remount the BonAppMenu when using DevBonAppPicker
this solves the issue of only changing the cafeId prop, and so the component has to listen for both initial data and updates
1 parent 98042da commit 8fee512

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

source/views/menus/dev-bonapp-picker.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export class BonAppPickerView extends React.PureComponent<Props, State> {
6161
<ToolbarButton isActive={true} title="Go" />
6262
</Toolbar>
6363
<BonAppHostedMenu
64+
key={this.state.cafeId}
6465
cafeId={this.state.cafeId}
6566
loadingMessage={['Loading…']}
6667
name="BonApp"

0 commit comments

Comments
 (0)