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

Add React helpers #47

Merged
merged 2 commits into from
Nov 8, 2021
Merged

Add React helpers #47

merged 2 commits into from
Nov 8, 2021

Conversation

nopelluhh
Copy link
Member

@nopelluhh nopelluhh commented Oct 21, 2021

Changes

  • Add WTProvider, useTrack and useWT hooks
  • Reorganize code and tests to have clean split between client and react code

Callouts

  • yarn.lock was also deduped as part of adding new react dependencies.

@nopelluhh nopelluhh changed the base branch from master to modernize October 21, 2021 22:58
@nopelluhh nopelluhh marked this pull request as ready for review October 29, 2021 16:54
@nopelluhh nopelluhh changed the base branch from modernize to master October 29, 2021 16:56
Copy link
Contributor

@bcharna bcharna left a comment

Choose a reason for hiding this comment

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

this is neat! just a handful of small comments/questions

README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/react.tsx Outdated Show resolved Hide resolved
};

export const createProvider = <
Params extends Record<string | number, any> = WTEventParams
Copy link
Contributor

Choose a reason for hiding this comment

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

do we want to allow number keys?

Copy link
Member Author

Choose a reason for hiding this comment

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

i don't think there's a particular reason to exclude them?

Copy link
Contributor

Choose a reason for hiding this comment

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

curious what a practical use case would be, but don't feel strongly about excluding them.

README.md Show resolved Hide resolved
Copy link
Contributor

@bcharna bcharna left a comment

Choose a reason for hiding this comment

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

great work on this!

@nopelluhh nopelluhh merged commit 88661c1 into master Nov 8, 2021
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