-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DPLT-975 feat: support for code-exporter #100
Conversation
import { GraphqlPlayground } from "./graphiql"; | ||
import dynamic from 'next/dynamic'; | ||
|
||
const DynamicGraphiQLWithExporter = dynamic( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Code exporter plugin does not work in SSR so we have to load it like such.
7a2d0e2
to
2974bae
Compare
@@ -7,6 +7,7 @@ import { | |||
NearSocialBridgeProvider, | |||
} from "near-social-bridge"; | |||
import { IndexerDetailsProvider } from '../contexts/IndexerDetailsContext'; | |||
import 'regenerator-runtime/runtime'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2974bae
to
8eaa46f
Compare
HASURA_ENDPOINT, | ||
{ | ||
method: "POST", | ||
headers: { "x-hasura-role": "roshaan_near" }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be set to current account?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Next Steps
- Table Format
- Using a Infinite List
Loom Video Demo:
https://www.loom.com/share/59bb2b8ea19540458bbfac27918079a6