Skip to content

Commit d7d58a4

Browse files
authored
Revert "Fix setstate link for amp-bind (#40299)" (#40301)
This reverts commit cf722d6.
1 parent 3ba09b5 commit d7d58a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/amp-bind/amp-bind.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ The [`AMP.setState()`](../../docs/spec/amp-actions-and-events.md#amp) action mer
375375

376376
In the example above, triggering the `AMP.setState({})` action on the first button evaluates the `[text]` binding expression. It then inserts the defined **state variable's** value into the `<p>` tag.
377377

378-
When clicking the second button, with `AMP.setState({myState:{baz: myState.foo}})` action defined, it [deep-merges](#deep-merge-with-amp.setstate()) the "baz" **state variable** value to the same as the "foo" **state variable** value. Both `<p>` tags display "bar".
378+
When the clicking the second button, with `AMP.setState({myState:{baz: myState.foo}})` action defined, it [deep-merges](#deep-merge-with-ampsetstate) the "baz" **state variable** value to the same as the "foo" **state variable** value. Both `<p>` tags display "bar".
379379

380380
**State variable** values can update to values not defined in the initial state. When clicking the third button, with `"tap:AMP.setState({myState:{baz: 'world'}})"` action defined, it deep merges the "baz" **state variable** value, overriding it to "world".
381381

0 commit comments

Comments
 (0)