Skip to content

Commit

Permalink
docs: add searchOnLoad prop to provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Hinchley committed Jul 18, 2018
1 parent 6d0cbeb commit ec6827b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/docs/wrapper.tsx
Expand Up @@ -13,7 +13,9 @@ const pipeline = new Pipeline(
const values = new Values({ q: "api", resultsPerPage: 3 });

export const Wrapper = ({ children }: { [k: string]: any }) => (
<Provider search={{ pipeline, values }}>{children}</Provider>
<Provider search={{ pipeline, values }} searchOnLoad>
{children}
</Provider>
);

export default Wrapper;

0 comments on commit ec6827b

Please sign in to comment.