dillon1000/react

Commit

Use lz-string for playground state uri param

This compresses more efficiently than the base64 encoding we were
previously using, which makes sharing URLs a little less unwieldy and
takes up less space in local storage. Using
some real code as an example, lz-string compresses to 8040 bytes,
whereas the original base64 encoding we were using compresses to 16504
bytes

ghstack-source-id: b8f1089889b94b07d6f419606b798ffddb8863ba
Pull Request resolved: https://github.com/facebook/react-forget/pull/2834
Browse files
Changed paths4 files
First-parent comparison
M compiler/apps/playground/lib/stores/store.ts ModifiedD compiler/apps/playground/lib/utils.ts DeletedM compiler/apps/playground/package.json ModifiedM compiler/yarn.lock Modified
Patch

Files changed

Rendering syntax-highlighted changes…