Skip to content

Commit

Permalink
Merge branch 'main' into fix/tsup-remove-experimental-entry
Browse files Browse the repository at this point in the history
  • Loading branch information
manudeli authored Oct 29, 2023
2 parents 0c18ccf + 5749faa commit fea5404
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/src/pages/docs/react/ErrorBoundary.en.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Example = (

## useErrorBoundary

<Callout type="warning">useErrorBoundary is experimental feature, this interfaces could be changed</Callout>
### useErrorBoundary().setError

In children of `<ErrorBoundary/>`, we can use useErrorBoundary().setError to make `<ErrorBoundary/>` aware of the Error without throw.

Expand Down
2 changes: 1 addition & 1 deletion docs/src/pages/docs/react/ErrorBoundary.ko.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ const Example = (

## useErrorBoundary

<Callout type="warning">useErrorBoundary는 실험 기능이므로 이 인터페이스는 변경될 수 있습니다.</Callout>
### useErrorBoundary().setError

`<ErrorBoundary/>`의 children에서 useErrorBoundary().setError을 사용해 throw 없이도 `<ErrorBoundary/>`에서 Error를 알도록 할 수 있습니다.

Expand Down
7 changes: 7 additions & 0 deletions packages/react-query/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @suspensive/react-query

## 1.18.0

### Patch Changes

- Updated dependencies [4ec2a19]
- @suspensive/react@1.18.0

## 1.17.7

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@suspensive/react-query",
"version": "1.17.7",
"version": "1.18.0",
"description": "Useful helpers for @tanstack/react-query with suspense",
"keywords": [
"suspensive",
Expand Down Expand Up @@ -71,7 +71,7 @@
"tsd": "^0.28.1"
},
"peerDependencies": {
"@suspensive/react": "workspace:^1.17.7",
"@suspensive/react": "workspace:^1.18.0",
"@tanstack/react-query": "^4",
"react": "^16.8 || ^17 || ^18"
},
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @suspensive/react

## 1.18.0

### Minor Changes

- 4ec2a19: feat(react): useErrorBoundary to stable from experimental

## 1.17.7

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@suspensive/react",
"version": "1.17.7",
"version": "1.18.0",
"description": "Useful interfaces for React Suspense",
"keywords": [
"suspensive",
Expand Down
3 changes: 0 additions & 3 deletions packages/react/src/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,9 +144,6 @@ export const withErrorBoundary = <TProps extends ComponentProps<ComponentType> =

const ErrorBoundaryContext = createContext<({ reset: () => void } & ErrorBoundaryState) | null>(null)

/**
* @experimental This is experimental feature.
*/
export const useErrorBoundary = <TError extends Error = Error>() => {
const [state, setState] = useState<ErrorBoundaryState<TError>>({
isError: false,
Expand Down
4 changes: 2 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions websites/visualization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"@emotion/react": "^11.10.8",
"@emotion/styled": "^11.10.8",
"@jsxcss/emotion": "^1.3.9",
"@suspensive/react": "workspace:1.17.7",
"@suspensive/react": "workspace:1.18.0",
"@suspensive/react-await": "workspace:0.0.3",
"@suspensive/react-query": "workspace:1.17.7",
"@suspensive/react-query": "workspace:1.18.0",
"@tanstack/react-query": "^4.29.5",
"@tanstack/react-query-devtools": "^4.29.5",
"@vercel/analytics": "^1.1.1",
Expand Down
2 changes: 0 additions & 2 deletions websites/visualization/src/app/CommonLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ export const CommonLayout = ({ children }: PropsWithChildren) => {
return (
<>
<TopNavigation />
<Link href="/react/experimental/useErrorBoundary">🔗 Experimental Feature: useErrorBoundary</Link>
<Link href="/react-await">🔗 Experimental Feature: Await</Link>
<Flex.Center flex={1}>{children}</Flex.Center>
</>
)
Expand Down

0 comments on commit fea5404

Please sign in to comment.