Improve loading states and fix authentication data fetching (#48) #16
ci.yml
on: push
common
/
Check commit messages
13s
common
/
Lint and build
49s
common
/
Test
1m 19s
Annotations
1 error
|
common / Check commit messages
You have commit messages with errors
⧗ input: Improve loading states and fix authentication data fetching (#48)
* feat: replace redux-localstorage with redux-persist
- Update store configuration to use redux-persist instead of redux-localstorage
- Add PersistGate wrapper component for state rehydration
- Configure whitelist-based persistence for better control over persisted state
* feat: add loading state management for data fetching
- Add loading state tracking to Redux store with initial states for unit/service
- Implement GET_RESOURCE_START action to set loading states to true
- Update dataReducer to handle loading state transitions and normalize state structure
- Modify Dashboard component to use loading state instead of checking for undefined data
- Add setResourceFetchStart action dispatch in Main component before fetch operations
* fix: reset geolocation stage after login to prevent stuck state
- Add reset parameter to getInitialLocation() to reset currentStage
- Fix bug where geolocation wouldn't work after login due to persistent currentStage
- Ensure getNearestUnits() is called properly on subsequent app sessions
- Pass reset=true explicitly when calling getInitialLocation in Main component
* fix: ensure user authentication before data fetching in AppComponent
* fix: remove
unnecessary import
✖ subject may not be empty [subject-empty]
✖ type may not be empty [type-empty]
✖ found 2 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
|