This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import middy from '@middy/core' | |
| import ssm from '@middy/ssm' | |
| import { ApolloServer } from 'apollo-server-lambda' | |
| import { makeExecutableSchema, mergeSchemas } from '@graphql-tools/schema' | |
| import { | |
| introspectSchema, | |
| wrapSchema, | |
| TransformObjectFields, | |
| FieldNodeTransformer, | |
| } from '@graphql-tools/wrap' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { createContext, useContext, useEffect, useRef } from 'react' | |
| import Head from 'next/head' | |
| import Router from 'next/router' | |
| const ScrollRestorationContext = createContext(null) | |
| export const useScrollRestoration = ({ router, ignorePattern: optsIgnorePattern }) => { | |
| const shouldScrollRestore = useRef(true) |
OlderNewer