Closed mbritton closed 1 year ago
It may be necessary to provide to try the latest dev version and also to post a live example to be able to develop some insight.
Also, .refresh() may be a typo since such a function is not available. Perhaps you had x3dom.reload()
in mind ? It is used with the x3dom global.
Of potential relevance two new X3D4 fields autoRefresh and autoRefreshTimeLimit are part of 9.3.2 X3DUrlObject https://www.web3d.org/specifications/X3Dv4Draft/ISO-IEC19775-1v4-DIS/Part01/components/networking.html#X3DUrlObject
X3DUrlObject {
SFTime [in,out] autoRefresh 0.0 [0,∞)
SFTime [in,out] autoRefreshTimeLimit 3600.0 [0,∞)
SFString [in,out] description ""
SFBool [in,out] load TRUE
MFString [in,out] url [] [URI]
}
Unfortunately, autorefresh
is not yet implemented in x3dom.
System: MacOS Monterey x3dom version: 1.8.1
Expected behavior: x3dom.refresh is accessible after the dependency loads. Actual: Unhandled Runtime Error: refresh is not a function.
Thanks for the excellent 3D toolset. I'm loading x3dom in a NextJS component to display an .x3d file loaded in from a headless CMS. The first time it's accessed, the model appears. Any time I return to the route, however, the model does not appear.
I've read how people use
x3dom.refresh()
after the model loads in some use cases. In this case, I get an error.Any advice would be appreciated!
Mike