Skip to content

Commit

Permalink
feat(vanilla): unstable_buildProxyFunction instead of unstable_getHan…
Browse files Browse the repository at this point in the history
…dler (#528)

* feat(vanilla): unstable_customize instead of unstable_getHandler

* unstable_buildProxyFunction

* rename to avoid confusion

* fix unstable prefix

* update docs

* expose full features

* fix snapshotCache

* simplify exposing internal function

* a tiny refactor

* rever the wrong change in #533

* reorder functions

* expose newProxy

* revert readme

* go back to buildProxyFunction

* fix docs

* small renaming a param

* make shared state global

* directly access shared state
  • Loading branch information
dai-shi authored Sep 5, 2022
1 parent e037d39 commit dfd0c9b
Show file tree
Hide file tree
Showing 5 changed files with 239 additions and 219 deletions.
9 changes: 9 additions & 0 deletions docs/hacks/unstable_buildProxyFunction.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: 'unstable_buildProxyFunction'
section: 'Hacks'
description: ''
---

# unstable_buildProxyFunction

This function exposes the internal proxy function builder. It's an experimental feauture and you need to understand the [source code](https://github.com/pmndrs/valtio/blob/main/src/vanilla.ts) thoroughly to use it.
9 changes: 0 additions & 9 deletions docs/hacks/unstable_getHandler.mdx

This file was deleted.

2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ export {
getVersion,
subscribe,
snapshot,
getHandler as unstable_getHandler,
unstable_buildProxyFunction,
} from './vanilla'
Loading

1 comment on commit dfd0c9b

@vercel
Copy link

@vercel vercel bot commented on dfd0c9b Sep 5, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

valtio – ./

valtio.vercel.app
valtio-pmndrs.vercel.app
valtio-git-main-pmndrs.vercel.app
valtio.pmnd.rs

Please sign in to comment.