Skip to content
This repository has been archived by the owner on Aug 19, 2022. It is now read-only.

force all prefix #1023

Open
macrozone opened this issue Apr 9, 2019 · 0 comments
Open

force all prefix #1023

macrozone opened this issue Apr 9, 2019 · 0 comments

Comments

@macrozone
Copy link

avoiding unneeded prefixes sounds like a good idea, until you want to cache SSR-results.

Including the userAgent in a cache-key is not practical, so you have to use all prefixes both on server and client (to avoid missmatch).

I tried to use radiumConfig={{userAgent: "all"}} on server and client, but i still get missmatch.

E.g. given this style:

    display: 'flex',
    padding: 10,
    alignItems: 'center',
    justifyContent: 'space-between',

produces:


Server: 

"padding:10px;
display:-webkit-box;
display:-moz-box;
display:-ms-flexbox;
display:-webkit-flex;
display:flex;
-webkit-align-items:center;
align-items:center;
-webkit-justify-content:space-between;
justify-content:space-between;
-ms-flex-align:center;
-webkit-box-align:center;
-ms-flex-pack:justify;
-webkit-box-pack:justify" 

Client: 

"padding:10px;
display:flex;
-webkit-align-items:center;
align-items:center;
-webkit-justify-content:space-between;
justify-content:space-between;
-ms-flex-align:center;
-webkit-box-align:center;
-ms-flex-pack:justify;
-webkit-box-pack:justify"

its weird that there are some prefixes (e.g. on flex-align. But "display: flex" is missing a prefix on the client.

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

No branches or pull requests

1 participant