({ children, ...clientOpts }: Props)
| 12 | } |
| 13 | |
| 14 | export const OpenAPIProvider = ({ children, ...clientOpts }: Props) => { |
| 15 | const api = useMemo(() => new OpenAPIClientAxios({ ...clientOpts }), []); |
| 16 | try { |
| 17 | api.initSync(); |
| 18 | } catch (err) {} |
| 19 | return <OpenAPIContext.Provider value={{ api }}>{children}</OpenAPIContext.Provider>; |
| 20 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected