Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

CSS and JSON outputs are broken #22

Open
madx opened this issue Dec 6, 2019 · 6 comments
Open

CSS and JSON outputs are broken #22

madx opened this issue Dec 6, 2019 · 6 comments

Comments

@madx
Copy link

madx commented Dec 6, 2019

Exporting to CSS or JSON shows a blank page containing todo: redirect. It used to work before.

@madx
Copy link
Author

madx commented Feb 12, 2020

Any way we can help fixing this? :)

@tn3rb
Copy link

tn3rb commented Apr 9, 2020

my guess is that the following line in both palx/www/src/pages/css.js and palx/www/src/pages/json.js:

const { colors } = props.location.state

needs to change to:

const { colors } = props.state

@ibnumalik
Copy link

It's because this line is not working, you need to use <GatsbyLink> to make it work.

Turn this line...

<Button as={GatsbyLink} mr={2} to='/json' state={{ colors }}>JSON</Button>

to

<GatsbyLink mr={2} to='/json' state={{ colors }}>JSON</GatsbyLink>

Seems like the button component didn't pass the state correctly.

@RyanTG
Copy link

RyanTG commented Apr 4, 2021

This would be really cool to have fixed.

@TedVu
Copy link

TedVu commented Jun 12, 2021

Seems like it has not been fixed yet

@HasanMothaffar
Copy link

Still not fixed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants