Post - Integrating a Custom Grid Component with Redux in React/SharePoint

Published on
7 mins read
--- views

Task

It is necessary to place certain data from the created component, using states and hooks, from CustomGrid into the Redux store.

Implementation

The component works as an adapter, which is backward compatible with the existing and already used CustomGrid in the system (to make integration less painful). It works through hooks used inside the grid component, passing and listening to data from it, and simultaneously updating data in Redux.

Component Code:

Source Code above is mutated for demonstration purposes

(Again, this is not the final version. And since this is a team effort, I am not the only one contributing.)

Content `Source Code` requires special access key

Please, communicate with administrator to obtain the access key here

Reducers

Content `Source Code` requires special access key

Please, communicate with administrator to obtain the access key here

Selectors

Content `Source Code` requires special access key

Please, communicate with administrator to obtain the access key here

Actions

Content `Source Code` requires special access key

Please, communicate with administrator to obtain the access key here