-
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): expose internal states and functions (#931)
* feat(core): expose internal states and functions * use createHandler * refactor * update docs * update docs * Revert "update docs" This reverts commit 33b04d4.
- Loading branch information
Showing
5 changed files
with
301 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
--- | ||
title: 'Internals' | ||
section: 'API' | ||
subSection: 'Hacks' | ||
description: '' | ||
--- | ||
|
||
Valtio exposes some internal capabilities. | ||
This isn't for app developers. Use it at your own risk. | ||
|
||
# unstable_getInternalStates | ||
|
||
This function exposes the internal states. Modifying such states may result in wrong behaviors. You need to understand the [source code](https://github.com/pmndrs/valtio/blob/main/src/vanilla.ts) thoroughly to use it. | ||
|
||
# unstable_replaceInternalFunction | ||
|
||
This function exposes a way to replace some internal functions. It can easily break things. You need to understand the [source code](https://github.com/pmndrs/valtio/blob/main/src/vanilla.ts) thoroughly to use it. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.