-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(batch): replace unstable batch api with custom queue
- Loading branch information
1 parent
a082123
commit df56b5b
Showing
32 changed files
with
417 additions
and
317 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
import React from 'react' | ||
import { view } from 'react-easy-state' | ||
import appStore from './appStore' | ||
import Beer from './Beer' | ||
import React from "react"; | ||
import { view } from "react-easy-state"; | ||
import appStore from "./appStore"; | ||
import Beer from "./Beer"; | ||
|
||
// this is re-rendered whenever the relevant parts of the used data stores change | ||
export default view(() => ( | ||
<div className='beerlist'> | ||
<div className="beerlist"> | ||
{!appStore.beers.length ? ( | ||
<h3>No matching beers found!</h3> | ||
) : ( | ||
appStore.beers.map(beer => <Beer key={beer.name} {...beer} />) | ||
)} | ||
</div> | ||
)) | ||
)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
import React from 'react' | ||
import { view } from 'react-easy-state' | ||
import SearchBar from 'material-ui-search-bar' | ||
import LinearProgress from '@material-ui/core/LinearProgress' | ||
import appStore from './appStore' | ||
import React from "react"; | ||
import { view } from "react-easy-state"; | ||
import SearchBar from "material-ui-search-bar"; | ||
import LinearProgress from "@material-ui/core/LinearProgress"; | ||
import appStore from "./appStore"; | ||
|
||
// this is re-rendered whenever the relevant parts of the used data stores change | ||
export default view(() => ( | ||
<div className='searchbar'> | ||
<div className="searchbar"> | ||
<SearchBar | ||
onRequestSearch={appStore.fetchBeers} | ||
placeholder='Add some food ...' | ||
placeholder="Add some food ..." | ||
autoFocus | ||
/> | ||
{appStore.isLoading && <LinearProgress />} | ||
</div> | ||
)) | ||
)); |
Oops, something went wrong.