Skip to content

Setup p10: API call state management#19

Merged
pnv2003 merged 4 commits intoN3Mobile:masterfrom
pnv2003:setup
May 29, 2024
Merged

Setup p10: API call state management#19
pnv2003 merged 4 commits intoN3Mobile:masterfrom
pnv2003:setup

Conversation

@pnv2003
Copy link
Copy Markdown
Member

@pnv2003 pnv2003 commented May 29, 2024

Loading screen and Error screen are implemented as modals. You can wrap your screen using the ScreenWrapper component and pass the RTK query API call states (isLoading, isError, ...) to conditionally render the UI. See usage in the Test screen.

Update: this is only used for root stack screens (TO BE FIXED)

@pnv2003 pnv2003 merged commit 08e95f1 into N3Mobile:master May 29, 2024
@pnv2003 pnv2003 added enhancement New feature or request help wanted Extra attention is needed bug Something isn't working and removed bug Something isn't working labels May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant