Closed DanielRivers closed 2 weeks ago
The recent updates focus on enhancing data handling across various modules by introducing and refactoring a refreshData
function. This includes changes in configurations, updates in the React-based AuthProvider
component for state management, and modifications to the Kinde Browser Client to utilize the new refreshData
function. The version number has also been incremented to reflect these functional enhancements.
File | Change Summary |
---|---|
src/config/index.js |
Added refreshData function to initialState object. Updated export declarations to include refreshData . |
src/frontend/AuthProvider.jsx |
Reordered imports, added refreshData function, moved state initialization within KindeProvider , and adjusted flag handling logic. |
src/frontend/KindeBrowserClient.js |
Refactored fetchData function into refreshData and updated useEffect hook to call refreshData . |
src/utils/version.js |
Updated version number from '2.2.13' to '2.3.0-3'. |
types.d.ts |
Added refreshData method to KindeClient and KindeState types, supporting asynchronous data refresh. |
sequenceDiagram
actor User
participant KindeBrowserClient
User ->> KindeBrowserClient: Initiates component
KindeBrowserClient ->> KindeBrowserClient: useEffect() hook
KindeBrowserClient ->> KindeBrowserClient: fetchData()
KindeBrowserClient -->> User: Fetch data completed
sequenceDiagram
actor User
participant KindeBrowserClient
User ->> KindeBrowserClient: Initiates component
KindeBrowserClient ->> KindeBrowserClient: useEffect() hook
KindeBrowserClient ->> KindeBrowserClient: refreshData()
KindeBrowserClient -->> User: Refresh data completed
KindeProvider
Data HandlingsequenceDiagram
participant KindeProvider
participant KindeBrowserClient
KindeProvider ->> KindeBrowserClient: refreshData()
KindeBrowserClient -->> KindeProvider: Data refreshed
KindeProvider ->> KindeProvider: Update state with new data
These diagrams showcase the improved flow with refreshData
replacing fetchData
, leading to a more streamlined and separated data handling logic.
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Explain your changes
Adds ability for browser to refresh the claim data.
Checklist
🛟 If you need help, consider asking for advice over in the Kinde community.