FacetWP was unable to auto-detect the post listing : Having an issue with ACF load choices causing FacetWP error

I thank you for taking a look at my issue if you did. I was able to get the issue resolved thanks to FaceWp support team. What I realized is that when you are usind facetwp plugin, and you are having an issue with filters not working when the refresh ajax is fired, just add a nonce to ajax, for some reason mine was failing.

Note that the main reason is for authentication described here. This resolved the issue I was having.

/*
 * Authentication for facet
 * Please note that caching may interfere with the NONCE,
 * causing AJAX requests to fail. Please DISABLE CACHING for facet pages,
 * or set the cache expiration to < 12 hours!
*/

add_action( 'wp_footer', function() {
  ?>
    <script>
      document.addEventListener('facetwp-loaded', function() {
        if (! FWP.loaded) { // initial pageload
          FWP.hooks.addFilter('facetwp/ajax_settings', function(settings) {
            settings.headers = { 'X-WP-Nonce': FWP_JSON.nonce };
            return settings;
          });
        }
      });
    </script>
  <?php
}, 100 );