custom widget in create-react-app not seeing view changes

266
0
02-15-2021 05:56 PM
jcartwright
New Contributor III

Hello All,

I have a create-react-app application into which I've added the Recenter demo widget  (with minor changes to use ESM).  The widget loads but doesn't seem to get notified of changes in view after loading.  I'm wondering if this is because the widget, along w/ the rest of the ArcGIS JSAPI code, is loading in a useEffect hook.  If this is indeed the problem, can someone suggest a work around?

Thanks!

--john

 

 

 

Tags (3)
0 Kudos
0 Replies