Skip to content

Commit

Permalink
Add link to state update blog (facebook#5423)
Browse files Browse the repository at this point in the history
  • Loading branch information
acywatson authored Dec 27, 2023
1 parent a5b20c0 commit 58b84da
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/lexical-website/docs/concepts/editor-state.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ won't be reflected in editor. See "Update state" below for proper ways of updati

## Updating state

:::tip

For a deep dive into how state updates work, check out [this blog post](https://dio.la/article/lexical-state-updates) by Lexical contributor [@DaniGuardiola](https://twitter.com/daniguardio_la).

:::

The most common way to update the editor is to use `editor.update()`. Calling this function
requires a function to be passed in that will provide access to mutate the underlying
editor state. When starting a fresh update, the current editor state is cloned and
Expand Down

0 comments on commit 58b84da

Please sign in to comment.