Giter VIP home page Giter VIP logo

gatsby-plugin-graphql-preview's Introduction

gatsby-plugin-graphql-preview's People

Contributors

djfarly avatar jariz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gatsby-plugin-graphql-preview's Issues

General Questions

Hey!

This idea looks great. I haven’t had a chance to try it, but wanted to ask a few questions.

If this is using the gatsby-source-graphql do previews only work while in dev mode? So the user would have to run gatsby develop to see the live previews? Or does it somehow unstitch the Schema to allow for live previewing even when Gatsby is not in develop mode? I.e. queries are executed against the external GraphQL source from the exported static site?

I’ve been trying to think through the best way to do previews for WordPress + Gatsby sites using WPGraphQL, and I feel like the only way is to not use gatsby-source-graphql because the stitching seems to screw things up a bit.

Maybe I need to play with it more. This looks sweet though! Definitely keeping an eye on it.

exporting a variable named "onCreateWebpackConfig" which isn't an API

I've added this plugin to a gatsby starter and get the following error:

The plugin "[email protected]" is exporting a variable named "onCreateWebpackConfig" which isn't an API. Perhaps you meant to export "modifyWebpackConfig"?

It's a bit beyond me sorry I'm not much help here but thought I'd report it.

This repo was working fine, added graphql-preview plugin and now getting error above.

https://github.com/GraphCMS/graphcms-examples/tree/master/current/gatsby-source-plugin-blog

Find a way to not duplicate pages

it's doubling the amount of pages, the project i'm testing it on already consists of 700 pages which is kind of pushing gatsby over it's limit already (seems to be a pretty big talking point internally right now gatsbyjs/gatsby#11982),
anyway, doubling that amount makes it kind of impossible to use for me personally sadly.
i'll have a look at the code itself at some point when I have a minute, but wondering if there's a way we could reuse the query results returned for the already existing pages that you know of.

Compile to ES5

Currently I get errors from IE11 when using this. 😭
Considering you're already compiling stuff with babel, it's probably a simple matter of only adding a preset.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.