vivmagarwal / strapi-plugin-custom-api-builder

36 stars 9 forks source link

Support Strapi ~v4.19.0 #22

Closed Satsaa closed 7 months ago

Satsaa commented 7 months ago

This removes async methods from useEffects and replaces them with synchronous functions that call an asynchronous method inside. Seems like react doesn't want to deal with Promises properly now?

Checkboxes replaced with proper strapi checkbox component for theme support.

When fetching using getReducedDataObject fails, the field will be skipped. (Fixes admin::user causing error)

Looks like I included some formatting. Too bad. Also whether the created apis still work actually, is not tested.

vivmagarwal commented 7 months ago

@Satsaa , thanks for the PR! I appreciate your efforts.

I am merging it; As there are not test cases written yet, Kindly ensure that it works as expected after the merge; I know a few sites in production (using older versions of strapi) using it. Kindly confirm me here if things are working as expected;