maxs15 / maxs15/react-native-modalbox
modelbox will hide when I use Redux Action to fetch async data with the prop named isOpen is False
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 2.9k
- Forks
- 496
- PR merge metrics
- No merged PRs in 30d
Description
1.the prop isOpen is init with False,
2.with Redux,react-native-thunk, wrap ModelBox to a common component which can be used by Other View,
3.use the method open() to make the modelBox component to be visible,I can see the isOpen (this.state.isOpen) is True.
4.in ModelBox, use thunk to launch an async request to fetch remote data,but now the box is invisible automatically,and the **(this.state.isOpen) is False again.
5.but when I set the prop isOpen init with True,to do the 2-3 step,the (this.state.isOpen) is
still True,and the modalBox is always visible.
I don't want it to be invisible when I use redux and thunk to fetch async data,how to do?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the described flow: open ModelBox, then use Redux and react-native-thunk to fetch remote data asynchronously. Inspect how ModelBox handles its isOpen prop and state during that update; done when the box remains visible after the request begins, with the behavior covered by a reproducible test or example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react-native, redux
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100