Skip to content

Comments

remove objects. save 19 bytes#96

Merged
charkour merged 5 commits intomainfrom
shave-objects
May 23, 2023
Merged

remove objects. save 19 bytes#96
charkour merged 5 commits intomainfrom
shave-objects

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

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