What is the function of Zotero.Schema.schemeUpdatePromise

11 views
Skip to first unread message

Soham S

unread,
Nov 15, 2021, 5:25:32 AM11/15/21
to zotero-dev
I have a third-party script which has `await Zotero.Schema.schemeUpdatePromise`

What is the functionality of the above call?

Emiliano Heyns

unread,
Nov 15, 2021, 9:53:40 AM11/15/21
to zotero-dev
Roughly, that promise clears when Zotero's internal API is ready to use. The database will have been loaded and migrated if necessary, the path to the data files is known, etc. You can do some things before this point, and it takes at least a few seconds to clear after start, but anything you do before that is prone to race conditions and other hard to debug errors in my experience.
Reply all
Reply to author
Forward
0 new messages