-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The first one (polygon's own) is the most solid. Others are flimsy and tend to break, hit timeouts, etc. Matthew asked if we can go with the "default" main one. Here it is.
- Loading branch information
1 parent
6ea374b
commit 7cb47df
Showing
4 changed files
with
22 additions
and
4 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,12 +1,15 @@ | ||
import React from 'react' | ||
import React, { useState } from 'react' | ||
import Provider from 'streamr-client-react' | ||
import { getStreamrClientConfig } from '../utils/streams' | ||
|
||
interface Props { | ||
children: React.ReactNode | ||
} | ||
|
||
const StreamrClientProvider = ({ children }: Props) => { | ||
return <Provider>{children}</Provider> | ||
const [config] = useState(getStreamrClientConfig()) | ||
|
||
return <Provider {...config}>{children}</Provider> | ||
} | ||
|
||
export default StreamrClientProvider |
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