maxs15 / maxs15/react-native-modalbox

modelbox will hide when I use Redux Action to fetch async data with the prop named isOpen is False

Open
#98 4 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.