This repository (optuna-dashboard) and Goptuna share common code.
This pull request may therefore be ported to Goptuna.
Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.
[x] I agree this patch may be ported to Goptuna by other Goptuna contributors.
Reference Issues/PRs
N/A
What does this implement/fix? Explain your changes.
I abstracted apiClient so that the same <App /> can be used with different API fetchers.
Introduced abstract class APIClient
Implemented class AxiosClient that extends APIClient with axios
Contributor License Agreement
This repository (
optuna-dashboard
) and Goptuna share common code. This pull request may therefore be ported to Goptuna. Make sure that you understand the consequences concerning licenses and check the box below if you accept the term before creating this pull request.Reference Issues/PRs
N/A
What does this implement/fix? Explain your changes.
I abstracted
apiClient
so that the same<App />
can be used with different API fetchers.APIClient
AxiosClient
that extendsAPIClient
with axiosAPIClientProvider