Skip to content

Commit

Permalink
Update website/docs/docs/api/persist.md
Browse files Browse the repository at this point in the history
Co-authored-by: Jørn A. Myrland <[email protected]>
  • Loading branch information
damassi and jmyrland authored Apr 14, 2023
1 parent 07ba657 commit e25b425
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/docs/api/persist.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ have persisted state based on a previous version of your store model. The user's
persisted state may not align with that of your new store model, which could
result in errors when a component tries to consume/update the store.

By default the persist API utilizes the mergeDeep strategy (you can read more
about merge strategies further below). The mergeDeep strategy attempts to
By default the persist API utilizes the `mergeDeep` strategy (you can read more
about merge strategies further below). The `mergeDeep` strategy attempts to
perform an optimistic merge of the persisted state against the store model.
Where it finds that the persisted state is missing keys that are present in the
store model, it will ensure to use the respective state from the store model. It
will also verify the types of data at each key. If there is a misalignment
(ignoring null or undefined) then it will opt for using the data from the store
(ignoring `null` or `undefined`) then it will opt for using the data from the store
model instead as this generally indicates that the respective state has been
refactored.

Expand Down

0 comments on commit e25b425

Please sign in to comment.