Socket
Socket
Sign inDemoInstall

@bedrock-layout/use-stateful-ref

Package Overview
Dependencies
3
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.0 to 1.1.1

4

package.json
{
"name": "@bedrock-layout/use-stateful-ref",
"version": "1.1.0",
"version": "1.1.1",
"description": "bedrock-layout useStatefulRef",

@@ -53,3 +53,3 @@ "sideEffects": false,

},
"gitHead": "2b51e9b5b5e6ab92af6ba1ab580638a658e3caeb"
"gitHead": "cc6756259aadbdba7db78a59187a34215c33eb57"
}
# `@bedrock-layout/use-stateful-ref`
Full docs at: [bedrock-layout.dev](https://bedrock-layout.dev/)
React RefObjects are not stateful, or in other words, changing the `current` property on the RefObject doesn't trigger a rerender.

@@ -4,0 +6,0 @@ One can use a ref callback to updated state, but now we are no longer using RefObjects and there is great power in consistency and knowing we will be getting a

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc