()
| 959 | // and sibling counters not the initial one |
| 960 | it('does not forget it mounted an id when re-rendering in dev', async () => { |
| 961 | function Parent() { |
| 962 | const id = useId(); |
| 963 | return ( |
| 964 | <div> |
| 965 | {id} <Child /> |
| 966 | </div> |
| 967 | ); |
| 968 | } |
| 969 | function Child() { |
| 970 | const id = useId(); |
| 971 | return <div>{id}</div>; |