-
-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change state management package #1036
base: main
Are you sure you want to change the base?
Change state management package #1036
Conversation
… into fusawa-yugo/change-state-management-package
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The approach looks good 👍
optuna_dashboard/ts/action.ts
Outdated
@@ -29,20 +29,16 @@ export const actionCreator = () => { | |||
const { apiClient } = useAPIClient() | |||
const { enqueueSnackbar } = useSnackbar() | |||
const [studySummaries, setStudySummaries] = | |||
useRecoilState<StudySummary[]>(studySummariesState) | |||
useAtom<StudySummary[]>(studySummariesState) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type arguments are explicitly specified in the original code, but they are redundant. I think it's a good opportunity to remove them:
useAtom<StudySummary[]>(studySummariesState) | |
useAtom(studySummariesState) |
@porink0424 |
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
What does this implement/fix? Explain your changes.
Development of Recoil stopped a while ago.
So, I propose using Jotai for state management instead.