@bedrock-layout/use-stateful-ref
Advanced tools
Comparing version 1.1.0 to 1.1.1
{ | ||
"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 |
9091
25