Closed stevensyzygy closed 3 years ago
Thank you @stevensyzygy ! Have you seen that in this PR #223 i also introduced an update function? https://github.com/webarkit/ARnft/blob/2c13502ec2bf792683c71bb90b09b48ecc2db12c/src/ARnft.ts#L231-L243 That is used only internally by the initialize function. To avoid conflicts i will rename to internalUpdate. I also saw other changes in the code that i will review. In detail i appreciate the work improving the Promises. I haven't merged yet but i will merge soon with the changes in my private update function.
I got a bit confused with the autoupdate, for me its a bit hard to review all of it, would be cool if it could be split in different small PRs :)
@stevensyzygy see this discussion https://github.com/webarkit/ARnft/discussions/236
The conflicting files is caused because i forgot to rebuild the libs before merging, Sorry for this!
@stevensyzygy great!
found a mistake in ARnft.ts:161. _arnft.autoUpdate = params.autoUpdate ?? true; // instead of _arnft.autoUpdate = params.autoUpdate;
Renamed interface Entity to IEntity Added interface IInitConfig, INameInitConfig, IEntityInitConfig. Added new init function using config object. Added autoUpdate field and update function, allows to maintain update yourself. Added arNFT_autoupdate_example.html converted some Promise Chains to async/await.