Edit sandy-migration.mdx using inpage editor

Summary:
This diff has been automatically generated by the inpage editor.
                        If you want to update this diff, go through the preview link that would be attached to the test plan.
                        Please ensure you are editing the same page that was used to create this diff.

Reviewed By: timur-valiev

Differential Revision: D30767036

fbshipit-source-id: 8e828f9f6fb6a5590be428ed325418a62df55c4d
This commit is contained in:
Wenhuan Li
2021-09-06 09:41:08 -07:00
committed by Facebook GitHub Bot
parent 4ba9a334d5
commit 69924e26e0

View File

@@ -92,6 +92,7 @@ This step is completed if the plugin follows the next `plugin` / `component` str
Some abstractions that used to be (for example) static methods on `FlipperPlugin` are now exposed from the `client` object: Some abstractions that used to be (for example) static methods on `FlipperPlugin` are now exposed from the `client` object:
| Old | New | | Old | New |
| --- | --- |
| `persistedState` | Use `createState` and set the `persist` option | | `persistedState` | Use `createState` and set the `persist` option |
| `persistedStateReducer` | Create message handlers and update the state objects directly | | `persistedStateReducer` | Create message handlers and update the state objects directly |
| `exportPersistedState` | Use the `client.onExport` hook | | `exportPersistedState` | Use the `client.onExport` hook |