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

feat(react/utils): Add useProxy() hook #626

Merged
merged 6 commits into from Jan 15, 2023
Merged

feat(react/utils): Add useProxy() hook #626

merged 6 commits into from Jan 15, 2023

Conversation

sarimarton
Copy link
Contributor

@sarimarton sarimarton commented Jan 14, 2023

Related Issues

Follow-up on #620

Summary

  • Adds useProxy() hook.
  • Deprecates valtio/macro and valtio/vacro/vite.
  • Update readme

Check List

  • yarn run prettier for formatting code and docs

@vercel
Copy link

vercel bot commented Jan 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
valtio ✅ Ready (Inspect) Visit Preview Jan 15, 2023 at 4:20AM (UTC)

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jan 14, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit be022cd:

Sandbox Source
React Configuration
React Typescript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration

@sarimarton sarimarton changed the title Add useProxy() hoook Add useProxy() hook Jan 15, 2023
@dai-shi
Copy link
Member

dai-shi commented Jan 15, 2023

https://codesandbox.io/s/react-typescript-forked-ix38xu

Deprecation message works.
image

@dai-shi
Copy link
Member

dai-shi commented Jan 15, 2023

Hmm, I want to reorganize entry points. Will do it in a new PR along with updating readme.

@dai-shi dai-shi changed the title Add useProxy() hook feat(react/utils): Add useProxy() hook Jan 15, 2023
Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

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

Let's merge this. I will probably change react-utils to react/utils and then export from utils too.

@dai-shi dai-shi merged commit 6aa5e8a into pmndrs:main Jan 15, 2023
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.

None yet

2 participants