(I personaly use it a callback to encode the shortcodes and format the output).
In my test i concluded that is not good to use the same class class-wp-rest-controller and class-wp-rest-posts-controller from wordpress.
To avoid this problem, i decided to duplicate this 2 classes and add them in acf-to-rest-api folder
give at acf-to-rest-api the access to these new classes and remove completely the code who fetch the contents field that acf have no need;
see below part commented.
I think there is some test to do on it. I wanted just to share my experience on this infinite loop
I found an infinite loop issue (maximum time)
When the developer create a custom register_rest_field in function.php on page content.
(I personaly use it a callback to encode the shortcodes and format the output).
In my test i concluded that is not good to use the same class class-wp-rest-controller and class-wp-rest-posts-controller from wordpress.
To avoid this problem, i decided to duplicate this 2 classes and add them in acf-to-rest-api folder
give at acf-to-rest-api the access to these new classes and remove completely the code who fetch the contents field that acf have no need; see below part commented.
I think there is some test to do on it. I wanted just to share my experience on this infinite loop