FaridSafi / FaridSafi/react-native-gifted-listview

does not re-render on state change

Open
#65 1 comment 2 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.6k
Forks
287
PR merge metrics
No merged PRs in 30d

Description

when the component receive new props or state it will not re-render,
example, passing props that change the url.
`componentWillReceiveProps(nextProps){
if(this.state.category !== nextProps.category){
this.setState({
category: nextProps.category
})
}
}`
but after changing the props or state if I pull the list it will render the new url (obviously).

also doing
`this.refs.listView._refresh()`
will not re-render the component

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the componentWillReceiveProps example with a changing category or URL, then inspect the listView entry point and its _refresh() behavior. Done means the list re-renders with the new props or state without requiring a manual pull or ref refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.