Skip to content

Commit

Permalink
Fix typos in Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
manzoorwanijk committed Oct 31, 2024
1 parent 2be9755 commit 349fdbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion projects/js-packages/wp-data-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Sync data from client to server and vice versa using @wordpress/data stores.

Often, when working on settings page UIs, we need to fetch the settings from and sync back to the server. This results in a lot of boiler plate code to define actions, action type constants, thinks, selectors, resolvers and reducers, which are often repeated for different sections.
Often, when working on settings page UIs, we need to fetch the settings from and sync back to the server. This results in a lot of boilerplate code to define actions, action type constants, thunks, selectors, resolvers and reducers, which are often repeated for different sections.

This package exports a function named `createWpDataSync`, which abstracts that boiler plate away and adds a way to simply define what data you need and where to get from and then it gives you the required selectors, actions, resolvers, and a reducer which you can pass to `@wordpress/data` store.

Expand Down

0 comments on commit 349fdbd

Please sign in to comment.