forked from cube-js/cube
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(client-core): castNumerics option (cube-js#7123)
- Loading branch information
1 parent
675a0a0
commit 9aed9ac
Showing
5 changed files
with
71 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,14 @@ | ||
import React from 'react'; | ||
import CubeContext from './CubeContext'; | ||
|
||
export default function CubeProvider({ cubejsApi, children }) { | ||
return <CubeContext.Provider value={{ cubejsApi }}>{children}</CubeContext.Provider>; | ||
export default function CubeProvider({ cubejsApi, children, options = {} }) { | ||
return ( | ||
<CubeContext.Provider value={{ | ||
cubejsApi, | ||
options | ||
}} | ||
> | ||
{children} | ||
</CubeContext.Provider> | ||
); | ||
} |
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