Skip to content

Releases: diegopeixoto/unicornstudio-react

2.1.4-1

23 Mar 22:55
ad2d266

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.1.1...2.1.4-1

2.0.1-1

12 Jan 15:44
65b3170

Choose a tag to compare

What's Changed

Full Changelog: 2.0.1...2.0.1-1

2.0.1

09 Jan 20:48
89ad625

Choose a tag to compare

What's Changed

Full Changelog: v2.0.0...2.0.1

v1.5.2

03 Dec 20:45
e135563

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.4.33...v1.5.2

v1.4.33

06 Oct 18:21
0adff28

Choose a tag to compare

What's Changed

Full Changelog: v1.4.31...v1.4.33

v1.4.31

21 Sep 09:20
7231c19

Choose a tag to compare

What's Changed

Full Changelog: v1.4.30...v1.4.31

v1.4.30

17 Sep 18:25
3826b39

Choose a tag to compare

What's Changed

Full Changelog: v1.4.29...v1.4.30

v1.4.29-1

15 Aug 15:46
6239856

Choose a tag to compare

Changelog

[1.4.29-1] - 2025-08-15

Fixed

Next.js App Router Compatibility

  • Prevented duplicate script initialization: Modified useUnicornStudioScript hook to check if UnicornStudio is already loaded before setting the loaded state, preventing duplicate triggers in Next.js App Router environments
  • Added mount-time script detection: Added useEffect hook to detect if UnicornStudio is already available when the component mounts, ensuring proper initialization in server-side rendered contexts
  • Improved error handling: Updated error handler to properly reset the isLoaded state when script loading fails

Scene Initialization Improvements

  • Prevented concurrent initializations: Added isInitializingRef flag to prevent multiple simultaneous scene initialization attempts, which could occur during React's strict mode or rapid re-renders
  • Optimized re-initialization logic: Improved detection of already initialized scenes with the same configuration to avoid unnecessary re-initializations
  • Better cleanup handling: Separated cleanup logic into its own useEffect to ensure proper resource management on component unmount
  • Fixed initialization key reset: Added proper reset of initialization key when projectId or jsonFilePath changes, allowing fresh initialization with new parameters

@GeorgeHastings in #11

v1.4.29

23 Jul 17:02
620523d

Choose a tag to compare

What's Changed

Full Changelog: v1.4.28...v1.4.29

v1.4.28

23 Jul 16:55
d50fe52

Choose a tag to compare

What's Changed

Full Changelog: v1.4.27...v1.4.28