Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix lint issues

+8 -8
+2 -2
packages/next-urql/src/__tests__/init-urql-client.spec.ts
··· 31 31 cacheExchange, 32 32 ssrEx, 33 33 fetchExchange, 34 - ], 34 + ] 35 35 ); 36 36 37 37 expect(urqlClient).toHaveProperty('url', 'http://localhost:3000'); ··· 51 51 url: 'http://localhost:3000', 52 52 }, 53 53 undefined, 54 - initialState, 54 + initialState 55 55 ); 56 56 57 57 expect(urqlClient).toHaveProperty('url', 'http://localhost:3000');
+5 -5
packages/next-urql/src/__tests__/with-urql-client.spec.tsx
··· 89 89 ctx => ({ 90 90 url: 'http://localhost:3000', 91 91 fetchOptions: { 92 - headers: { Authorization: ctx && ctx.req!.headers!.cookie || '' }, 92 + headers: { Authorization: (ctx && ctx.req!.headers!.cookie) || '' }, 93 93 }, 94 94 }), 95 - mockMergeExchanges, 95 + mockMergeExchanges 96 96 )(MockApp); 97 97 }); 98 98 ··· 104 104 url: 'http://localhost:3000', 105 105 fetchOptions: { headers: { Authorization: token } }, 106 106 }, 107 - mockMergeExchanges, 107 + mockMergeExchanges 108 108 ); 109 109 }); 110 110 }); ··· 113 113 beforeEach(() => { 114 114 Component = withUrqlClient( 115 115 { url: 'http://localhost:3000' }, 116 - mockMergeExchanges, 116 + mockMergeExchanges 117 117 )(MockApp); 118 118 }); 119 119 ··· 123 123 124 124 expect(app.props().urqlClient).toBeInstanceOf(Client); 125 125 expect(app.props().urqlClient.exchange.toString()).toEqual( 126 - composeExchanges(defaultExchanges).toString(), 126 + composeExchanges(defaultExchanges).toString() 127 127 ); 128 128 expect(mockMergeExchanges).toHaveBeenCalledTimes(1); 129 129 });
+1 -1
packages/preact-urql/src/hooks/useImmediateState.ts
··· 31 31 setState(action); 32 32 } 33 33 }, 34 - [state] 34 + [] 35 35 ); 36 36 37 37 useIsomorphicLayoutEffect(() => {