Anyone has experience to query feature layer in React function component with Experience Builder developer edition v1.14? Following simple code just failed to load.
import Query from 'esri/rest/support/Query'
export default function Filter () {
const query = new Query()
}
It can load if remove that one line Query code. ChatGPT says "Using esri/rest/support/Query in a React function component can be challenging due to the asynchronous nature of the ArcGIS API and the lifecycle of React components. ", so changed to use useEffect, useRef, but still doesn't work.
Thanks for any suggestion!