You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Bump frontend dependencies & setup better urql cache
This commit is contained in:
@@ -12,14 +12,12 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import {
|
||||
createClient,
|
||||
dedupExchange,
|
||||
cacheExchange,
|
||||
fetchExchange,
|
||||
} from "@urql/core";
|
||||
import { createClient, fetchExchange } from "@urql/core";
|
||||
import { cacheExchange } from "@urql/exchange-graphcache";
|
||||
|
||||
import schema from "./gql/schema";
|
||||
|
||||
export const client = createClient({
|
||||
url: "/graphql",
|
||||
exchanges: [dedupExchange, cacheExchange, fetchExchange],
|
||||
exchanges: [cacheExchange({ schema }), fetchExchange],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user