Skip to content
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

Merged
merged 5 commits into from
May 23, 2023
Merged

remove objects. save 19 bytes #96

merged 5 commits into from
May 23, 2023

Conversation

charkour
Copy link
Owner

877 B --> 858 B

import dynamic from "next/dynamic";
import { PersistOptions } from "zustand/middleware/persist";
import merge from "lodash.merge";
import { useMemo } from 'react';
Copy link
Owner Author

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;
}
Copy link
Owner Author

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>(
Copy link
Owner Author

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';
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auto formatting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant