Skip to main content
Module

x/valtio/docs/hacks/getVersion.mdx

πŸ’Š Valtio makes proxy-state simple for React and Vanilla
Go to Latest
File
---title: 'getVersion'section: 'Hacks'description: ''---
# getVersion
In Valtio, updates to proxied objects are tracked internally with a version number. Therefore `getVersion` helper can be used to check if a proxied object has been updated. This is not typically useful or recommended to use in application code.
```jsgetVersion(proxyObject)```