goatslacker / goatslacker/alt

Data source -- changed state of store is not passed to remote method

Open
#375 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.4k
Forks
312
PR merge metrics
No merged PRs in 30d

Description

Hi,

I have simple data source and its loading action changes state of store. Problem is that to sources method `remote` is passed old state without change made by loading action.

How should by handled loading action in store?

```
onLoading() {
this.setState({key: value})
}
```

or

```
onLoading() {
this.key = value;
}
```

Both does not work for me.

Thank you.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.