Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Nested fetch state #4

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

dmitryshelomanov
Copy link
Member

@dmitryshelomanov dmitryshelomanov commented Mar 27, 2019

Problem

Many fetch state in a flat state object

Solution

Add support fetch in nested state
For example

  const initial = {
    fetching: {
      main: initialFetching,
      apply: initialFetching,
    },
  }
  const symbiotes = {
    fetchNewsHandler: createFetching("fetching.main"),
    applyNewsHandler: createFetching("fetching.apply"),
  }

@coveralls
Copy link

Pull Request Test Coverage Report for Build 32

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.2%) to 47.273%

Totals Coverage Status
Change from base Build 31: 2.2%
Covered Lines: 23
Relevant Lines: 43

💛 - Coveralls

@coveralls
Copy link

coveralls commented Mar 27, 2019

Pull Request Test Coverage Report for Build 35

  • 7 of 7 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+2.2%) to 47.273%

Totals Coverage Status
Change from base Build 31: 2.2%
Covered Lines: 23
Relevant Lines: 43

💛 - Coveralls

@sergeysova
Copy link
Member

Please, add tests to check for deep level foo.bar.baz

@dmitryshelomanov
Copy link
Member Author

@sergeysova I added random deep lvl

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants