to just see the data BUT the problem iām having is that the handler iām making isnāt added to the frontity.libraries.source and I donāt know why.
You may need to use libraries.source.api.get to fetch the data from a specific endpoint such as https://gatorworksfron.wpengine.com/wp-json/acf/v3/options/options.
You will then also need to add the fetched data into the state using libraries.source.populate, as libraries.source.api.get doesnāt automatically populate the state in the way that actions.source.fetch does.
Would i be attempting to use that in the beforeSSR? I was able to view the acfOptionsHandler in frontity.libaries.source now but the data for the options is not be fetched. I tried using ālibraries.source.api.getā and then populating, but i found no success.
I followed your instructions on how to add the Wordpress menus and got a better understanding of handlers. But not able to replicate the addition of this handler using a seperate file, i get the error ācannot read property āstartswithā of undefinedā
When keeping the handler inside the root index, it adds to the frontity.libaries.source fine. Really not sure why the data isnāt fetching.
Any other insight would appreciated, thank you for the help so far!
I was able to get it to work, I had to combine my beforeSSR functions and use a Promise.all on the fetch calls. I am able to see the options now though. Thank you @mburridge & @Johan for the help!