Skip to content

Commit f1fd016

Browse files
committed
Fix enableDebugging state update issue
1 parent 3535aca commit f1fd016

File tree

6 files changed

+16
-17
lines changed

6 files changed

+16
-17
lines changed

packages/connect-react/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<!-- markdownlint-disable MD024 -->
22
# Changelog
33

4+
# [1.0.0-preview.29] - 2025-02-10
5+
6+
- Fix enableDebugging state update bug
7+
48
# [1.0.0-preview.28] - 2025-02-05
59

610
- Surface SDK errors in the form

packages/connect-react/examples/nextjs/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/connect-react/examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
},
88
"dependencies": {
99
"@pipedream/connect-react": "file:../..",
10-
"@pipedream/sdk": "^1.3.2",
10+
"@pipedream/sdk": "^1.3.3",
1111
"next": "15.0.3",
1212
"react": "19.0.0-rc-66855b96-20241106",
1313
"react-dom": "19.0.0-rc-66855b96-20241106"

packages/connect-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pipedream/connect-react",
3-
"version": "1.0.0-preview.28",
3+
"version": "1.0.0-preview.29",
44
"description": "Pipedream Connect library for React",
55
"files": [
66
"dist"

packages/connect-react/src/hooks/form-context.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const FormContextProvider = <T extends ConfigurableProps>({
7878
const id = useId();
7979

8080
const {
81-
component, configuredProps: __configuredProps, propNames, userId, sdkResponse, enableDebugging: __enableDebugging,
81+
component, configuredProps: __configuredProps, propNames, userId, sdkResponse, enableDebugging,
8282
} = formProps;
8383
const componentId = component.key;
8484

@@ -104,11 +104,6 @@ export const FormContextProvider = <T extends ConfigurableProps>({
104104
setSdkErrors,
105105
] = useState<SdkError[]>([])
106106

107-
const [
108-
enableDebugging
109-
,
110-
] = useState<boolean>(__enableDebugging === true)
111-
112107
const [
113108
enabledOptionalProps,
114109
setEnabledOptionalProps,

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)