jxnblk/palx

CSS and JSON outputs are broken

Opened this issue · 6 comments

madx commented

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

madx commented

Any way we can help fixing this? :)

tn3rb commented

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

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.

This would be really cool to have fixed.

TedVu commented

Seems like it has not been fixed yet

Still not fixed