Skip to content

feat(core): expose internal states and functions #931

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

Merged
merged 6 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions docs/api/hacks/internals.mdx
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.
10 changes: 0 additions & 10 deletions docs/api/hacks/unstable_buildProxyFunction.mdx

This file was deleted.

Loading