Skip to content

Commit 3e11aee

Browse files
authored
Merge pull request #1456 from rvsia/fixDocumentationTypo
Fix documentation typo
2 parents 22fbc98 + 6ff530c commit 3e11aee

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/react-renderer-demo/src/examples/components/examples/value-listener.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const FieldListener = () => {
2121
return null;
2222
};
2323

24-
const FieldListenerWrapper = () => <FormSpy subcription={{ values: true }}>{() => <FieldListener />}</FormSpy>;
24+
const FieldListenerWrapper = () => <FormSpy subscription={{ values: true }}>{() => <FieldListener />}</FormSpy>;
2525

2626
const schema = {
2727
fields: [

packages/react-renderer-demo/src/pages/examples/value-listener.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import CodeExample from '@docs/code-example';
33

44
<DocPage>
55

6-
76
# Value listener
87

98
This example shows how to update a value of one field according to a value of others without using the set [condition](/schema/condition-set).
@@ -12,7 +11,7 @@ This example shows how to update a value of one field according to a value of ot
1211

1312
Basically you have to just a set up a new component, that will listen to the form state and updates the intended fields.
1413

15-
**FormSpy** with a correct subscription ensures that the component will be always updated. You can also set the [subcription](/components/renderer#subscription) on the form level in the form renderer.
14+
**FormSpy** with a correct subscription ensures that the component will be always updated. You can also set the [subscription](/components/renderer#subscription) on the form level in the form renderer.
1615

1716
**hideField** ensures that the listener component is not visible in the dom and it won't affect the form layout.
1817

@@ -26,4 +25,4 @@ Basically you have to just a set up a new component, that will listen to the for
2625

2726
<CodeExample source="components/examples/value-listener" mode="preview" />
2827

29-
</DocPage>
28+
</DocPage>

0 commit comments

Comments
 (0)