File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,10 @@ export default class SmartQuery extends SmartApollo {
103103
104104 this . startQuerySubscription ( )
105105
106- if ( this . options . fetchPolicy !== 'no-cache' ) {
106+ if ( this . options . fetchPolicy !== 'no-cache' || this . options . notifyOnNetworkStatusChange ) {
107107 const currentResult = this . maySetLoading ( )
108108
109- if ( ! currentResult . loading ) {
109+ if ( ! currentResult . loading || this . options . notifyOnNetworkStatusChange ) {
110110 this . nextResult ( currentResult )
111111 }
112112 }
@@ -150,7 +150,7 @@ export default class SmartQuery extends SmartApollo {
150150
151151 const hasResultCallback = typeof this . options . result === 'function'
152152
153- if ( typeof data === 'undefined' ) {
153+ if ( data == null ) {
154154 // No result
155155 } else if ( ! this . options . manual ) {
156156 if ( typeof this . options . update === 'function' ) {
You can’t perform that action at this time.
0 commit comments