Looks like TextField SSR doesn't work properly.
There is minimalistic layout:
```
type="email"
name="email"
label="Email"
autoComplete={false}
/>
I'm getting error:
Warning: Prop
iddid not match. Server: "TextField15Label" Client: "TextField1Label"
If i remove label props, then error is about TextField id.
If i remove TextField at all, there is no errors (so Card, Button works fine).
SSR works fine
Warning: Prop
iddid not match.
馃憢 Thanks for opening your first issue. A contributor should give feedback soon. If you haven鈥檛 already, please check out the contributing guidelines. You can also join #polaris on the Shopify Partners Slack.
I'm also seeing this.
Me too
Same here
Seeing the same issue as well
I believe the problem has to do with the fact that the React app is being server side rendered. Inserting hooks to check and see if the componentDidMount/componentDidUpdate before displaying elements worked for me. Hope this helps!
import { useState, useEffect } from 'react';
const FooBar = () => {
const [rendered, setRendered] = useState(false);
useEffect(() => {
setRendered(true),
() => { setRendered(false); }
});
if(rendered)
return (
<div></div>
);
else
return <p>Loading...</p>;
}
This issue has been inactive for 180 days and labeled with Icebox. It will be closed in 7 days if there is no further activity.
Reopening this as SSR discrepancies are still an issue
Probot. No
This issue has been inactive for 180 days and labeled with Icebox. It will be closed in 7 days if there is no further activity.
Most helpful comment
I believe the problem has to do with the fact that the React app is being server side rendered. Inserting hooks to check and see if the componentDidMount/componentDidUpdate before displaying elements worked for me. Hope this helps!