Compare commits

..
Author SHA1 Message Date
Chris Tate df91473560 fix max update depth on homepage demo
When form inputs lack `$bindState` bindings (like in the homepage contact form simulation), `useFieldValidation` was called with `bindings?.value ?? ""` as the path. All three inputs registered at the same `""` path but with different validation configs. Each `registerField` call overwrote the previous one, triggering a re-render where the other inputs would see a mismatched config and re-register -- creating an infinite loop.

- Fix infinite re-render loop caused by multiple unbound form inputs (Input, Textarea, Select) all registering field validation at path `""` with different `checks` configs, causing them to overwrite each other endlessly
- Stabilize context values in ActionProvider, ValidationProvider, and useUIStream by using refs for state/callbacks, preventing unnecessary re-render cascades on every state update
2026-02-15 08:47:32 -06:00
10 changed files with 5 additions and 67 deletions
-13
View File
@@ -1,18 +1,5 @@
# @json-render/codegen
## 0.6.1
### Patch Changes
- @json-render/core@0.6.1
## 0.6.1
### Patch Changes
- Updated dependencies [ea97aff]
- @json-render/core@0.6.1
## 0.6.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/codegen",
"version": "0.6.1",
"version": "0.6.0",
"license": "Apache-2.0",
"description": "Utilities for generating code from json-render UI trees",
"keywords": [
-8
View File
@@ -1,13 +1,5 @@
# @json-render/core
## 0.6.1
## 0.6.1
### Patch Changes
- ea97aff: Fix infinite re-render loop caused by multiple unbound form inputs (Input, Textarea, Select) all registering field validation at the same empty path with different `checks` configs, causing them to overwrite each other endlessly. Stabilize context values in ActionProvider, ValidationProvider, and useUIStream by using refs for state/callbacks, preventing unnecessary re-render cascades on every state update.
## 0.6.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/core",
"version": "0.6.1",
"version": "0.6.0",
"license": "Apache-2.0",
"description": "JSON becomes real things. Define your catalog, register your components, let AI generate.",
"keywords": [
-13
View File
@@ -1,18 +1,5 @@
# @json-render/react-native
## 0.6.1
### Patch Changes
- @json-render/core@0.6.1
## 0.6.1
### Patch Changes
- Updated dependencies [ea97aff]
- @json-render/core@0.6.1
## 0.6.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/react-native",
"version": "0.6.1",
"version": "0.6.0",
"license": "Apache-2.0",
"description": "React Native renderer for @json-render/core. JSON becomes React Native components.",
"keywords": [
-15
View File
@@ -1,20 +1,5 @@
# @json-render/react
## 0.6.1
### Patch Changes
- 43ad534: Fix infinite re-render loop caused by multiple unbound form inputs (Input, Textarea, Select) all registering field validation at the same empty path with different `checks` configs, causing them to overwrite each other endlessly. Stabilize context values in ActionProvider, ValidationProvider, and useUIStream by using refs for state/callbacks, preventing unnecessary re-render cascades on every state update.
- @json-render/core@0.6.1
## 0.6.1
### Patch Changes
- ea97aff: Fix infinite re-render loop caused by multiple unbound form inputs (Input, Textarea, Select) all registering field validation at the same empty path with different `checks` configs, causing them to overwrite each other endlessly. Stabilize context values in ActionProvider, ValidationProvider, and useUIStream by using refs for state/callbacks, preventing unnecessary re-render cascades on every state update.
- Updated dependencies [ea97aff]
- @json-render/core@0.6.1
## 0.6.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/react",
"version": "0.6.1",
"version": "0.6.0",
"license": "Apache-2.0",
"description": "React renderer for @json-render/core. JSON becomes React components.",
"keywords": [
-13
View File
@@ -1,18 +1,5 @@
# @json-render/remotion
## 0.6.1
### Patch Changes
- @json-render/core@0.6.1
## 0.6.1
### Patch Changes
- Updated dependencies [ea97aff]
- @json-render/core@0.6.1
## 0.6.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@json-render/remotion",
"version": "0.6.1",
"version": "0.6.0",
"license": "Apache-2.0",
"description": "Remotion renderer for @json-render/core. JSON becomes video compositions.",
"keywords": [