Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

fix wrong order of fetchedFragments #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

edvardchen
Copy link

// entry
class ArticleTags extends React.Component{
  render(){
    return (
      <div>
       <A />
       <B />
      </div>
      )
  }
}

// Commponent A
export default Transmit.createContainer(A, {
  initialVariables: [],

  fragments: {
    dataA: () => {}
  }
});

// Commponent B
export default Transmit.createContainer(B, {
  initialVariables: [],

  fragments: {
    dataB: () => {}
  }
});

When I used the above code , something wired happen: A got dataB and B got dataA. Then I looked down the source code and found this bug. Please @RickWong verify and merge.

@edvardchen
Copy link
Author

@RickWong

@RickWong
Copy link
Owner

RickWong commented Dec 1, 2016

@NoChapter I cannot reproduce this problem. For me A gets dataA and B gets dataB. Please provide a full example.

@edvardchen
Copy link
Author

Here

https://github.com/NoChapter/react-isomorphic-starterkit/tree/multiContainer

This branch can reproduce the issuse.

@edvardchen
Copy link
Author

@RickWong

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.

None yet

2 participants