Skip to content

Commit

Permalink
Merge pull request #10 from KevinAst/next5
Browse files Browse the repository at this point in the history
utilize React fragments in device feature injection of <Notify> to eliminate the feature order dependency
  • Loading branch information
KevinAst authored Feb 5, 2019
2 parents 6651551 + db84e8e commit 02c1a92
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/features/init/device/feature.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@ export default createFeature({
platformSetup();

// initialize our notify utility, by injecting it in our component tree root
return [React.Children.toArray(curRootAppElm), <Notify key="Notify"/>];
return (
<React.Fragment>
{curRootAppElm}
<Notify key="Notify"/>
</React.Fragment>
);
},

});

0 comments on commit 02c1a92

Please sign in to comment.