-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
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
Ponyfill useId #88
Ponyfill useId #88
Conversation
Deploying with Cloudflare Pages
|
Percy is now failing because of the quota.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks good to me,
Could we add an ESLint rule to make useId
a restricted import and suggest using your ponyfill instead?
I believe we're using https://eslint.org/docs/latest/rules/no-restricted-imports on EW
Does not have to block this pull request, but a quick follow up would be appreciated
Ok, let me see if I can get that going tonight. Will land this in the interim. |
Sorry, I didn't get around to do this last night. I have put in element-hq/compound#228 and will try to come back to it. |
Inspired by https://github.com/ezcater/recipe/blob/dc253df74f0b9c509f13172980eb8c1a0defb62a/packages/recipe/src/utils/hooks/useUniqueId.ts.
Fixes: element-hq/compound#224
Replaces: #85