Skip to content

Commit f926543

Browse files
authored
fix: the error prop updates in override components (#842)
* fix: error prop memoization * chore: update version number
1 parent cadb778 commit f926543

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1414
- Updated the font and font-weights in the default styles
1515
- We no longer load the Rubik font by default
1616

17+
### Fixes
18+
19+
- Now the error prop should be updated in override components.
20+
1721
## [0.44.0] - 2024-07-15
1822

1923
- Removes the default `maxAgeInSeconds` value (previously 300 seconds) in EmailVerification Claim. If the claim value is true and `maxAgeInSeconds` is not provided, it will not be refreshed.

lib/build/emailpasswordprebuiltui.js

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

lib/build/thirdpartyprebuiltui.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/ts/recipe/emailpassword/components/features/signin/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function useChildProps(
141141
onForgotPasswordClick: onForgotPasswordClick,
142142
userContext,
143143
};
144-
}, [recipe]);
144+
}, [recipe, error, userContext]);
145145
}
146146

147147
export const SignInFeature: React.FC<

lib/ts/recipe/emailpassword/components/features/signup/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function useChildProps(
122122
onError,
123123
clearError,
124124
};
125-
}, [recipe]);
125+
}, [recipe, error, userContext]);
126126
}
127127

128128
export const SignUpFeature: React.FC<

lib/ts/recipe/thirdparty/components/features/signInAndUp/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export function useChildProps(
7272
navigate,
7373
userContext,
7474
};
75-
}, [recipe, recipeImplementation]);
75+
}, [recipe, recipeImplementation, error, userContext]);
7676
}
7777

7878
type PropType = PartialAuthComponentProps & {

0 commit comments

Comments
 (0)