You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user of Polaris ( in a Shopify app ), I have not followed the development of Polaris, so maybe this question is silly.
But why are all these basic building block components ( Card, SettingsToggle etc ) being deprecated in favour of all users (like me) spaghetti'ing similar components from Polaris primitives?
It strikes me as counterintuitive in several ways - firstly, the unified UX that Shopify seems to promote ( with their Built For Shopify initiative, for instance) is more difficult to implement - having to make sure that the home-grown components match the look they want. Secondly, the developer experience is horrible! Want a settings toggle? Sure, the one you used is deprecated, but here is an example of how you can do it yourself ( +50 lines of code, vs 5 before )
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
As a user of Polaris ( in a Shopify app ), I have not followed the development of Polaris, so maybe this question is silly.
But why are all these basic building block components ( Card, SettingsToggle etc ) being deprecated in favour of all users (like me) spaghetti'ing similar components from Polaris primitives?
It strikes me as counterintuitive in several ways - firstly, the unified UX that Shopify seems to promote ( with their Built For Shopify initiative, for instance) is more difficult to implement - having to make sure that the home-grown components match the look they want. Secondly, the developer experience is horrible! Want a settings toggle? Sure, the one you used is deprecated, but here is an example of how you can do it yourself ( +50 lines of code, vs 5 before )
https://polaris-react.shopify.com/components/deprecated/setting-toggle?example=setting-toggle-with-primitive-components
Am I missing something here? Is there a rationale behind this strategy I just dont understand?
thanks
Peter
Beta Was this translation helpful? Give feedback.
All reactions