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

Added network store #1

Merged
merged 30 commits into from
May 1, 2024
Merged

Added network store #1

merged 30 commits into from
May 1, 2024

Conversation

arhtudormorar
Copy link
Collaborator

No description provided.

@arhtudormorar arhtudormorar changed the title Tm/add/network Added network store May 1, 2024
eventName: string,
callback: (event: CustomEvent<T>) => void
) {
document.addEventListener(eventName, (evt) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

evt: CustomEvent<T> in function args instead of as CustomEvent<T>

export const store = createStore<StateType>()(
devtools(
persist(
immer((...a) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

can't be inferred arguments type?

@arhtudormorar arhtudormorar merged commit 9868679 into main May 1, 2024
1 check passed
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.

2 participants