-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DPLT-975 feat: support for code-exporter (#100)
- Loading branch information
Showing
5 changed files
with
106 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,16 @@ | ||
import { GraphqlPlayground } from "./graphiql"; | ||
import dynamic from 'next/dynamic'; | ||
|
||
const DynamicGraphiQLWithExporter = dynamic( | ||
() => import('./graphiql.jsx'), | ||
{ ssr: false } // This will load the component only on client side | ||
); | ||
|
||
function GraphqlPlayground({ }) { | ||
return ( | ||
<div style={{display: "block", width:"100%"}}> | ||
<DynamicGraphiQLWithExporter /> | ||
</div> | ||
); | ||
} | ||
|
||
export default GraphqlPlayground; |
This file contains 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