Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/soft-fishes-warn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@suspensive/react": minor
---

feat(react): fix bugs in `lazy` and stabilize it
6 changes: 0 additions & 6 deletions docs/suspensive.org/src/content/en/docs/react/lazy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ import { Callout } from '@/components'

# lazy

<Callout type='experimental'>

`lazy` is an experimental feature, so this interface may change.

</Callout>

The `lazy` function is a wrapper around React's `lazy` function that provides callbacks for component loading success and failure. It allows you to execute custom logic when a component loads successfully or fails, providing better user experience and debugging capabilities.

### Preloading Components
Expand Down
6 changes: 0 additions & 6 deletions docs/suspensive.org/src/content/ko/docs/react/lazy.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ import { Callout } from '@/components'

# lazy

<Callout type='experimental'>

`lazy`는 실험 기능이므로 이 인터페이스는 변경될 수 있습니다.

</Callout>

`lazy` 함수는 React의 `lazy` 함수를 래핑하여 컴포넌트 로딩 성공과 실패에 대한 콜백을 제공합니다. 컴포넌트가 성공적으로 로드되거나 실패할 때 사용자 정의 로직을 실행할 수 있어 더 나은 사용자 경험과 디버깅을 제공합니다.

### 컴포넌트 사전 로딩
Expand Down
Loading
Loading