Skip to content

Commit

Permalink
add consideration
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock committed Sep 1, 2022
1 parent bf5f5f6 commit f7de099
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hooks/src/index.js
Expand Up @@ -397,6 +397,7 @@ export function useErrorBoundary(cb) {
export function useId() {
const state = getHookState(currentIndex++, 11);
if (!state._value) {
// TODO: consider Number(currentComponent._vnode._mask + currentIndex).toString(36)
state._value = 'P' + currentComponent._vnode._mask + '-' + currentIndex;
}

Expand Down

0 comments on commit f7de099

Please sign in to comment.