percy icon indicating copy to clipboard operation
percy copied to clipboard

Spaces removed when isomorphic app is hydrated

Open kierandrewett opened this issue 2 years ago • 0 comments

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?

kierandrewett avatar Jul 30 '22 20:07 kierandrewett

Hey sorry for the delay!

Was your client compiled on stable?

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

chinedufn avatar Aug 16 '22 00:08 chinedufn

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

kierandrewett avatar Aug 16 '22 09:08 kierandrewett

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 https://github.com/chinedufn/percy/issues/170#issuecomment-1069115566

chinedufn avatar Aug 16 '22 12:08 chinedufn