Skip to content

Commit

Permalink
Remove recoil dependency from @optuna/storage
Browse files Browse the repository at this point in the history
  • Loading branch information
c-bata committed Aug 7, 2024
1 parent cfad7e9 commit 95497e4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 55 deletions.
25 changes: 1 addition & 24 deletions optuna_dashboard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions standalone_app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 1 addition & 26 deletions tslib/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tslib/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@
"@tanstack/react-table": "^8.17.3",
"plotly.js-dist-min": "^2.30.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recoil": "^0.7.7"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@optuna/types": "file:../types",
Expand Down
3 changes: 2 additions & 1 deletion tslib/react/src/utils/loadStorageFromFile.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { JournalFileStorage, SQLite3Storage } from "@optuna/storage"
import * as Optuna from "@optuna/types"
import { SetterOrUpdater } from "recoil"

type SetterOrUpdater<T> = (valOrUpdater: ((currVal: T) => T) | T) => void;

const readFile = async (file: File) => {
return new Promise<ArrayBuffer>((resolve, reject) => {
Expand Down

0 comments on commit 95497e4

Please sign in to comment.