Skip to content

Commit

Permalink
show that the <Suspense> boundary works without useId()
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Jun 3, 2022
1 parent 3259a44 commit c239968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ function LazyComponent() {
console.log('<LazyComponent/>')

// Doesn't work:
const id = useId()
// const id = useId()
// Works:
//const id = 'some-static-id'
const id = 'some-static-id'

let entry = (cache[id] ??= {})
console.log('id: ', id)
Expand Down

0 comments on commit c239968

Please sign in to comment.