Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Ginnivan committed May 28, 2019
1 parent 6c22d4d commit a2ec123
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ You can load multiple DataLoaders in a single page. Each `DataLoader` will fetch
### Params hashing
Behind the scenes the data loader uses a library called `hash-sum` to create hashes of the parameter object. You can override it on the DataProvider
Behind the scenes the data loader uses a library called `hash-sum` to create hashes of the parameter object. You can control which of the data loader params are taken into account by specifying the cache keys (similar to React hooks).
You can override the hashing function on the DataProvider if you have issues with the inbuilt library.
## More info
Expand Down
4 changes: 2 additions & 2 deletions src/data-provider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface Props {
isServerSideRender?: boolean
resources: DataLoaderResources<any>
globalProps?: object
/** Override the object hasing function */
/** Override the object hashing function */
objectHash?: ObjectHash
}

Expand All @@ -26,7 +26,7 @@ export class DataLoaderProvider extends React.Component<Props> {

this.dataLoader = new DataLoaderStoreAndLoader(
// tslint:disable-next-line:no-empty
this.props.onEvent || (() => {}),
this.props.onEvent || (() => { }),
this.props.initialState,
params => {
const dataLoader = this.props.resources.getResourceLoader(params.resourceType)
Expand Down

0 comments on commit a2ec123

Please sign in to comment.