File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -226,9 +226,15 @@ export class UIView extends Component<UIViewProps, UIViewState> {
226
226
/**
227
227
* View config updated callback
228
228
*
229
- * This is called by UI-Router when a state was activated, and one of its views targets this `UIView`
229
+ * This is called by UI-Router during ViewService.sync().
230
+ * The `newConfig` parameter will contain view configuration (component, etc) when a
231
+ * state is activated and one of its views targets this `UIView`.
230
232
*/
231
233
viewConfigUpdated ( newConfig : ReactViewConfig ) {
234
+ if ( newConfig === this . uiViewData . config ) {
235
+ return ;
236
+ }
237
+
232
238
let newComponent =
233
239
newConfig && newConfig . viewDecl && newConfig . viewDecl . component ;
234
240
let trans : Transition = undefined ,
You can’t perform that action at this time.
0 commit comments