-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
remove objects. save 19 bytes #96
Conversation
import dynamic from "next/dynamic"; | ||
import { PersistOptions } from "zustand/middleware/persist"; | ||
import merge from "lodash.merge"; | ||
import { useMemo } from 'react'; |
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.
Auto formatting
@@ -17,19 +17,24 @@ const useMyStore = create( | |||
|
|||
type ExtractState<S> = S extends { | |||
getState: () => infer T; | |||
} ? T : never; | |||
} |
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.
auto formatting
}), { | ||
pastStates: [{ bees: 20}, { bees: 30 }], | ||
}), | ||
temporal<MyState>( |
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.
auto formatting
import { create } from "zustand"; | ||
import { temporal } from "zundo"; | ||
import { create } from 'zustand'; | ||
import { temporal } from 'zundo'; |
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.
auto formatting
877 B --> 858 B