Skip to content

Encoding of explorerURLState #127

Answered by cheapsteak
carloschida asked this question in Q&A
Discussion options

You must be logged in to vote

Hi there,

We use lz-string - https://github.com/pieroxy/lz-string

Hope this sample would help!

import LZString from 'lz-string';

const explorerURLState = LZString.compressToEncodedURIComponent(
  JSON.stringify({ document, variables, headers, includeCookies }),
)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@dchambers
Comment options

@carloschida
Comment options

Answer selected by carloschida
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants