Closed clubanderson closed 4 years ago
This may be related to #3862
Refetch is not working recently. Works fine on first load and full refresh of the page. Does not work on refreshQuery.
render() { var tableObj = ConvertRouteToObj(this.props.location.pathname); return ( <Query query={FetchQuery(tableObj)} > {({ loading, error, data, refetch }) => { if (loading || !data) return <div>Loading...</div>; if (error) return <ErrorMessage error={error} />; this.refreshQuery=refetch; this.props.mainFormContext.resultsArr = data[tableObj.queryAllName]; this.props.mainFormContext.tableObj = tableObj; return ( <div> <OutputTable data={data} tableObj={tableObj} mainFormContext={this.props.mainFormContext}/> </div> ) }} </Query> ) }
System: OS: macOS 10.15.4 Binaries: Node: 14.3.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.4 - /usr/local/bin/npm Browsers: Chrome: 83.0.4103.61 Safari: 13.1 npmPackages: apollo-cache-inmemory: ^1.6.3 => 1.6.6 apollo-client: ^2.6.4 => 2.6.10 apollo-link: ^1.2.13 => 1.2.14 apollo-link-error: ^1.1.12 => 1.1.13 apollo-link-http: ^1.5.16 => 1.5.17 react-apollo: ^3.1.3 => 3.1.5
never mind - upgraded Apollo express component and it started working again
This may be related to #3862
Refetch is not working recently. Works fine on first load and full refresh of the page. Does not work on refreshQuery.
System: OS: macOS 10.15.4 Binaries: Node: 14.3.0 - /usr/local/bin/node Yarn: 1.22.4 - /usr/local/bin/yarn npm: 6.14.4 - /usr/local/bin/npm Browsers: Chrome: 83.0.4103.61 Safari: 13.1 npmPackages: apollo-cache-inmemory: ^1.6.3 => 1.6.6 apollo-client: ^2.6.4 => 2.6.10 apollo-link: ^1.2.13 => 1.2.14 apollo-link-error: ^1.1.12 => 1.1.13 apollo-link-http: ^1.5.16 => 1.5.17 react-apollo: ^3.1.3 => 3.1.5