Skip to content

Commit a7fc919

Browse files
committed
fix: update navi immediately when message bar changes
1 parent 7258a05 commit a7fc919

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

app/component/itinerary/navigator/NaviContainer.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import connectToStores from 'fluxible-addons-react/connectToStores';
12
import { routerShape } from 'found';
23
import PropTypes from 'prop-types';
34
import React, { useEffect, useRef } from 'react';
@@ -144,4 +145,12 @@ NaviContainer.defaultProps = {
144145
isNavigatorIntroDismissed: false,
145146
};
146147

147-
export default NaviContainer;
148+
const connectedComponent = connectToStores(
149+
NaviContainer,
150+
['MessageStore'],
151+
context => ({
152+
messages: context.getStore('MessageStore').getMessages(),
153+
}),
154+
);
155+
156+
export default connectedComponent;

0 commit comments

Comments
 (0)