Skip to content

Commit a524ede

Browse files
committed
(chore) - remove suspenseExchange for now since it doesn't work with subscriptions
1 parent bf03f2d commit a524ede

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/components/App.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ import { Switch, Route, Redirect } from 'react-router-dom'
66
import Login from './Login'
77
import Search from './Search'
88

9+
const Fetching = () => <p>Fetcing</p>
910
const App = () => (
1011
<div className="center w85">
1112
<Header />
1213
<div className="ph3 pv1 background-gray">
13-
<React.Suspense fallback={<p>Fetching</p>}>
14+
<React.Suspense fallback={<Fetching />}>
1415
<Switch>
1516
<Route exact path="/" render={() => <Redirect to="/new/1" />} />
1617
<Route exact path="/create" component={CreateLink} />

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import {
1212
subscriptionExchange
1313
} from "urql";
1414
import { cacheExchange } from '@urql/exchange-graphcache'
15-
import { suspenseExchange } from '@urql/exchange-suspense'
15+
// import { suspenseExchange } from '@urql/exchange-suspense'
1616
import { BrowserRouter } from 'react-router-dom'
1717
import { AUTH_TOKEN, LINKS_PER_PAGE } from './constants'
1818
import { FEED_QUERY } from './components/LinkList';
@@ -66,7 +66,7 @@ const client = createClient({
6666
// suspense: true,
6767
exchanges: [
6868
dedupExchange,
69-
suspenseExchange,
69+
// suspenseExchange,
7070
cache,
7171
fetchExchange,
7272
subscriptionExchange({

0 commit comments

Comments
 (0)