Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spaces removed when isomorphic app is hydrated #182

Closed
kierandrewett opened this issue Jul 30, 2022 · 3 comments
Closed

Spaces removed when isomorphic app is hydrated #182

kierandrewett opened this issue Jul 30, 2022 · 3 comments

Comments

@kierandrewett
Copy link

When running the isomorphic example, any spaces in text are removed (as shown below)

Hydrated
image

SSR copy (no JS)
image

Definitely want to use Percy for my website as your library seems to be the only Rust frontend library that provides a good SSR example rather than SSR being an afterthought.

Any ideas on how this can be fixed?

@chinedufn
Copy link
Owner

Hey sorry for the delay!

Was your client compiled on stable?

https://github.com/chinedufn/percy/blob/2aed65476bc4d4660c0eb2fe6c733ce96bf6aee7/README.md#stable-rust

@kierandrewett
Copy link
Author

I am on stable. Just switched to nightly + works just fine, thank you so much!

@chinedufn
Copy link
Owner

Great! If you'd like to stay on stable you can just wrap your text in quotes!

There's a plan to make this a compile time error instead of having people run into this and get confused. Sorry about that!


Related to #170 (comment)

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

No branches or pull requests

2 participants