cognitedata / reveal

Cognite Reveal 3D viewer
https://cognitedata.github.io/reveal
Apache License 2.0
76 stars 18 forks source link

fix: add uuid to injected spinner style dom node to avoid race condition #4507

Closed nabati closed 1 week ago

nabati commented 2 weeks ago

when using mutiple reveal instances on the same page

Type of change

Bug

Jira ticket :blue_book:

no ticket

Thread for reference: https://cognitedata.slack.com/archives/C8A0QGMLN/p1715853617765619

Description :pencil:

When using multiple reveal components on a single page, if one of them unmounts then the styles would get destroyed for the other ones as well. This refactors the Spinner styleId to be an instance variable and assings a unique id to each instance.

How has this been tested? :mag:

Did not test :)

Test instructions :information_source:

Not sure :)

Checklist :ballot_box_with_check:

github-actions[bot] commented 2 weeks ago

There were failures in the visual tests workflow. Image diffs for visual tests can be downloaded as an artifact here.

github-actions[bot] commented 1 week ago

There were failures in the visual tests workflow. Image diffs for visual tests can be downloaded as an artifact here.

github-actions[bot] commented 1 week ago

There were failures in the visual tests workflow. Image diffs for visual tests can be downloaded as an artifact here.