We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
TypeError: undefined is not an object (evaluating 'omitPropertiesMap.variant')
I believe this line (https://github.com/Shopify/restyle/blob/master/src/hooks/useRestyle.ts#L17) should be
- const props = omitPropertiesMap.variant + const props = omitPropertiesMap?.variant
The text was updated successfully, but these errors were encountered:
Getting this as well for calling useRestyle with any style function created through createRestyleFunction.
useRestyle
createRestyleFunction
Sorry, something went wrong.
Could you provide reproduction steps? I'm surprised this happens since Typescript doesn't complain.
I encountered this error when using useRestyle. My problem was not really migrating to V2. https://shopify.github.io/restyle/guides/migrating-to-v2/
OLD: const restyleFunctions = [spacing, border, backgroundColor]; NEW: const restyleFunctions = composeRestyleFunctions([spacing, border,backgroundColor]);
Hope this helps someone.
closed this issue as I am not facing this issue anymore, seems like it was a migration issue from my side.
No branches or pull requests
I believe this line (https://github.com/Shopify/restyle/blob/master/src/hooks/useRestyle.ts#L17) should be
The text was updated successfully, but these errors were encountered: