@react-three/fiber 8.15.18 → 8.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/CHANGELOG.md +950 -938
  2. package/dist/declarations/src/core/events.d.ts +93 -93
  3. package/dist/declarations/src/core/hooks.d.ts +57 -57
  4. package/dist/declarations/src/core/index.d.ts +87 -87
  5. package/dist/declarations/src/core/loop.d.ts +38 -33
  6. package/dist/declarations/src/core/renderer.d.ts +58 -58
  7. package/dist/declarations/src/core/store.d.ts +138 -137
  8. package/dist/declarations/src/core/utils.d.ts +131 -131
  9. package/dist/declarations/src/index.d.ts +12 -12
  10. package/dist/declarations/src/native/Canvas.d.ts +14 -14
  11. package/dist/declarations/src/native/events.d.ts +5 -5
  12. package/dist/declarations/src/native/polyfills.d.ts +1 -1
  13. package/dist/declarations/src/native.d.ts +12 -12
  14. package/dist/declarations/src/three-types.d.ts +393 -393
  15. package/dist/declarations/src/web/Canvas.d.ts +24 -24
  16. package/dist/declarations/src/web/events.d.ts +5 -5
  17. package/dist/{index-e23db861.esm.js → index-5712f892.esm.js} +75 -79
  18. package/dist/{index-c05f375c.cjs.prod.js → index-76e11619.cjs.prod.js} +75 -79
  19. package/dist/{index-a6803957.cjs.dev.js → index-a75b61c3.cjs.dev.js} +75 -79
  20. package/dist/react-three-fiber.cjs.dev.js +4 -4
  21. package/dist/react-three-fiber.cjs.prod.js +4 -4
  22. package/dist/react-three-fiber.esm.js +5 -5
  23. package/native/dist/react-three-fiber-native.cjs.dev.js +7 -7
  24. package/native/dist/react-three-fiber-native.cjs.prod.js +7 -7
  25. package/native/dist/react-three-fiber-native.esm.js +8 -8
  26. package/native/package.json +5 -5
  27. package/package.json +1 -1
  28. package/readme.md +253 -253
package/CHANGELOG.md CHANGED
@@ -1,938 +1,950 @@
1
- # @react-three/fiber
2
-
3
- ## 8.15.18
4
-
5
- ### Patch Changes
6
-
7
- - 8c01939a: fix: correctly pass frames in invalidate
8
-
9
- ## 8.15.17
10
-
11
- ### Patch Changes
12
-
13
- - 16c2ee97: fix(types): support @types/three@0.162.0
14
-
15
- ## 8.15.16
16
-
17
- ### Patch Changes
18
-
19
- - 71cd8f96: fix: tonemapping config overwrites userland
20
- - 0bb12fd1: fix(types): remove usage of THREE.Vector
21
-
22
- ## 8.15.14
23
-
24
- ### Patch Changes
25
-
26
- - 0afc9c12: fix: portal events, update examples
27
-
28
- ## 8.15.13
29
-
30
- ### Patch Changes
31
-
32
- - 0a399f6d: fix(native): use MSAA for antialias on iOS
33
-
34
- ## 8.15.12
35
-
36
- ### Patch Changes
37
-
38
- - 496d6f0d: fix: useLoader and XRFrame type fixes
39
-
40
- ## 8.15.11
41
-
42
- ### Patch Changes
43
-
44
- - 3d9af04d: fix: update import from three examples
45
-
46
- ## 8.15.10
47
-
48
- ### Patch Changes
49
-
50
- - 49158164: fix: don't recursively dispose primitives
51
-
52
- ## 8.15.9
53
-
54
- ### Patch Changes
55
-
56
- - 4cbc5530: fix(native): deopt iOS blob URI path
57
-
58
- ## 8.15.8
59
-
60
- ### Patch Changes
61
-
62
- - 70680832: fix: revert stable sort
63
-
64
- ## 8.15.7
65
-
66
- ### Patch Changes
67
-
68
- - 07e39e2e: fix(types): remove use of Object3D generic
69
-
70
- ## 8.15.6
71
-
72
- ### Patch Changes
73
-
74
- - 7bb2950b: experiment: stable object sort
75
-
76
- ## 8.15.5
77
-
78
- ### Patch Changes
79
-
80
- - 0e44fd8b: fix(types): preserve deprecated JSX annotations
81
-
82
- ## 8.15.4
83
-
84
- ### Patch Changes
85
-
86
- - 634e5db5: fix(native): harden Blob URI check for Android
87
-
88
- ## 8.15.3
89
-
90
- ### Patch Changes
91
-
92
- - beab4344: fix(native): workaround Android content policy for Blob URI
93
-
94
- ## 8.15.2
95
-
96
- ### Patch Changes
97
-
98
- - 086d3932: fix: size check and raycaster camera
99
-
100
- ## 8.15.1
101
-
102
- ### Patch Changes
103
-
104
- - 2d39676d: fix: ignore deprecated types, use correct XRFrame definition
105
-
106
- ## 8.15.0
107
-
108
- ### Minor Changes
109
-
110
- - cca8b6bb: feat: export buildGraph
111
-
112
- ## 8.14.7
113
-
114
- ### Patch Changes
115
-
116
- - 0f63a287: fix(native): restore polyfill conversions, drop networking
117
-
118
- ## 8.14.6
119
-
120
- ### Patch Changes
121
-
122
- - 465fa0fb: fix(native): revert usage of networking stack
123
-
124
- ## 8.14.5
125
-
126
- ### Patch Changes
127
-
128
- - f372a5b5: fix(applyProps): loosen copy identity in dev
129
-
130
- ## 8.14.4
131
-
132
- ### Patch Changes
133
-
134
- - dc7e5739: fix(native): amend BlobManager over globals
135
-
136
- ## 8.14.3
137
-
138
- ### Patch Changes
139
-
140
- - d77b0990: fix(native): drop fsstat for react-native-web
141
-
142
- ## 8.14.2
143
-
144
- ### Patch Changes
145
-
146
- - 33e8baef: fix: native perf, loader types
147
-
148
- ## 8.14.1
149
-
150
- ### Patch Changes
151
-
152
- - c99907bf: fix(native): prefer local uri for fs
153
-
154
- ## 8.14.0
155
-
156
- ### Minor Changes
157
-
158
- - 89e96bf4: feat: react-native-web, native globals fixes
159
-
160
- ## 8.13.9
161
-
162
- ### Patch Changes
163
-
164
- - 44d57b3c: fix(native): TextureLoader should remain consistent with FileLoader
165
-
166
- ## 8.13.8
167
-
168
- ### Patch Changes
169
-
170
- - 5da26d52: fix(useLoader): dispose loaders
171
-
172
- ## 8.13.7
173
-
174
- ### Patch Changes
175
-
176
- - 37b9502a: fix(Canvas): pass scene prop
177
-
178
- ## 8.13.6
179
-
180
- ### Patch Changes
181
-
182
- - 0597495c: fix: harden XR init against Renderer shim
183
-
184
- ## 8.13.5
185
-
186
- ### Patch Changes
187
-
188
- - 7a3b543b: fix: three type regressions
189
-
190
- ## 8.13.4
191
-
192
- ### Patch Changes
193
-
194
- - 824ee0f7: fix: safely diff instances
195
-
196
- ## 8.13.3
197
-
198
- ### Patch Changes
199
-
200
- - ffdb5fc4: revert nested portals, up suspend-react
201
-
202
- ## 8.13.2
203
-
204
- ### Patch Changes
205
-
206
- - bbabdf07: update suspend-react
207
-
208
- ## 8.13.1
209
-
210
- ### Patch Changes
211
-
212
- - c9fe03ba: fix: primitive swap and reactive portals
213
-
214
- ## 8.13.0
215
-
216
- ### Minor Changes
217
-
218
- - ecfc48b7: feat: CanvasProps alias, respect r152 color management
219
-
220
- ## 8.12.2
221
-
222
- ### Patch Changes
223
-
224
- - c5193468: fix: safeguard window.devicePixelRatio
225
-
226
- ## 8.12.1
227
-
228
- ### Patch Changes
229
-
230
- - 571f07ac: fix: safeguard window.devicePixelRatio
231
-
232
- ## 8.12.0
233
-
234
- ### Minor Changes
235
-
236
- - 1928d095: feat: `scene` render prop for custom THREE.Scene
237
-
238
- ## 8.11.11
239
-
240
- ### Patch Changes
241
-
242
- - f03c6ef8: feat: `scene` render prop for custom THREE.Scene
243
-
244
- ## 8.11.10
245
-
246
- ### Patch Changes
247
-
248
- - 12907836: fix onpointerlostcapture which fired before pointerup
249
-
250
- ## 8.11.9
251
-
252
- ### Patch Changes
253
-
254
- - 6b5f572c: fix: treeshake THREE.ColorManagement
255
-
256
- ## 8.11.8
257
-
258
- ### Patch Changes
259
-
260
- - 350cd3f3: fix(Canvas): inline render-effect
261
-
262
- ## 8.11.7
263
-
264
- ### Patch Changes
265
-
266
- - 96af62d5: fix: don't overwrite public cameras
267
-
268
- ## 8.11.6
269
-
270
- ### Patch Changes
271
-
272
- - 7d319c18: Fix is.equ obj:shallow, allow it to test arrays 1 level deep, fix canvas.camera prop being stale
273
-
274
- ## 8.11.5
275
-
276
- ### Patch Changes
277
-
278
- - c658f763: fix: update canvas prop types
279
-
280
- ## 8.11.4
281
-
282
- ### Patch Changes
283
-
284
- - 970aa58b: fix: play nice with offscreencanvas
285
-
286
- ## 8.11.3
287
-
288
- ### Patch Changes
289
-
290
- - 2bce569c: fix: progressively set colormanagement
291
-
292
- ## 8.11.2
293
-
294
- ### Patch Changes
295
-
296
- - 41d655cd: fix: hmr, srgb encode
297
-
298
- ## 8.11.1
299
-
300
- ### Patch Changes
301
-
302
- - 58cadeff: fix: skip circular onUpdate calls
303
-
304
- ## 8.11.0
305
-
306
- ### Minor Changes
307
-
308
- - 2917a47b: events.update, allow raycast w/o user interaction
309
- - 521bfb07: events.update, allow raycast w/o user interaction
310
-
311
- ## 8.10.4
312
-
313
- ### Patch Changes
314
-
315
- - d9e6316d: fix: transpile class properties
316
-
317
- ## 8.10.3
318
-
319
- ### Patch Changes
320
-
321
- - d06d2879: fix: align useLoader type, public fields from builds
322
-
323
- ## 8.10.2
324
-
325
- ### Patch Changes
326
-
327
- - 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
328
-
329
- ## 8.10.1
330
-
331
- ### Patch Changes
332
-
333
- - bfa0298f: fix memoized identity
334
-
335
- ## 8.10.0
336
-
337
- ### Minor Changes
338
-
339
- - 24c4dba4: shortcut for shadow type
340
-
341
- ## 8.9.2
342
-
343
- ### Patch Changes
344
-
345
- - 2aeb6500: fix: primitives are incorrectly swapped on key change in maps
346
-
347
- ## 8.9.1
348
-
349
- ### Patch Changes
350
-
351
- - 0cf11797: fix(events): type spread event props
352
-
353
- ## 8.9.0
354
-
355
- ### Minor Changes
356
-
357
- - a458b4dd: fix(loop): export flush methods and types
358
-
359
- ## 8.8.11
360
-
361
- ### Patch Changes
362
-
363
- - 2068f0cc: fix: events pointerlock, useLoader extension types
364
-
365
- ## 8.8.10
366
-
367
- ### Patch Changes
368
-
369
- - 00c24718: fix: invalidate pierced props
370
-
371
- ## 8.8.9
372
-
373
- ### Patch Changes
374
-
375
- - 4254400e: fix(createPortal): use correct JSX type
376
-
377
- ## 8.8.8
378
-
379
- ### Patch Changes
380
-
381
- - fcb183e3: fix: call onUpdate for attached children prop update
382
-
383
- ## 8.8.7
384
-
385
- ### Patch Changes
386
-
387
- - bedb16e7: fix: prefer named functions, for loops in hot paths
388
-
389
- ## 8.8.6
390
-
391
- ### Patch Changes
392
-
393
- - 02a558bb: fix: upgrade deps
394
-
395
- ## 8.8.5
396
-
397
- ### Patch Changes
398
-
399
- - 530a06d6: fix: upgrade deps to work-around CRA
400
-
401
- ## 8.8.4
402
-
403
- ### Patch Changes
404
-
405
- - 2f2dc9f9: chore: upgrade bridge to harden suspense behavior
406
-
407
- ## 8.8.3
408
-
409
- ### Patch Changes
410
-
411
- - 9f571239: fix #2506, events should fall back to rootstate"
412
-
413
- ## 8.8.2
414
-
415
- ### Patch Changes
416
-
417
- - dc389ed6: fix(Canvas): prevent remount on context update
418
-
419
- ## 8.8.1
420
-
421
- ### Patch Changes
422
-
423
- - 370d3ae5: refactor: pull context bridge from its-fine
424
-
425
- ## 8.8.0
426
-
427
- ### Minor Changes
428
-
429
- - 46d8b440: bridge cross-container context
430
-
431
- ## 8.7.4
432
-
433
- ### Patch Changes
434
-
435
- - 259c8895: fix: use self to get global context before window
436
-
437
- ## 8.7.3
438
-
439
- ### Patch Changes
440
-
441
- - eb5a3be4: fix: if there is an eventsource pointerevent will be set to none
442
-
443
- ## 8.7.2
444
-
445
- ### Patch Changes
446
-
447
- - 7f801e60: fix: events in portals carry the wrong raycaster, camera, etc
448
-
449
- ## 8.7.1
450
-
451
- ### Patch Changes
452
-
453
- - 962cc270: fix: allow canvas eventsource to be a ref
454
-
455
- ## 8.7.0
456
-
457
- ### Minor Changes
458
-
459
- - f5db1b78: feat: useInstanceHandle, flushGlobalEffects
460
-
461
- ## 8.6.2
462
-
463
- ### Patch Changes
464
-
465
- - 57c12e9c: fix(types): @react-three/drei declaration files
466
-
467
- ## 8.6.1
468
-
469
- ### Patch Changes
470
-
471
- - 7a0b5670: fix(core): don't append to unmounted containers
472
-
473
- ## 8.6.0
474
-
475
- ### Minor Changes
476
-
477
- - 85c80e70: eventsource and eventprefix on the canvas component
478
-
479
- ## 8.5.1
480
-
481
- ### Patch Changes
482
-
483
- - 87821d9: fix: null-check instance.children on reconstruct
484
-
485
- ## 8.5.0
486
-
487
- ### Minor Changes
488
-
489
- - edc8252: feat: handle primitive children, auto-attach via instanceof
490
-
491
- ## 8.3.1
492
-
493
- ### Patch Changes
494
-
495
- - aaeb2b8: fix(types): accept readonly arrays for vector props
496
-
497
- ## 8.3.0
498
-
499
- ### Minor Changes
500
-
501
- - 9c450ec: feat: improve errors
502
-
503
- ## 8.2.3
504
-
505
- ### Patch Changes
506
-
507
- - b8d2eab: fix: improve useLoader signature, initial size on createRoot
508
-
509
- ## 8.2.2
510
-
511
- ### Patch Changes
512
-
513
- - acd6f04: fix: warn on stray text
514
-
515
- ## 8.2.1
516
-
517
- ### Patch Changes
518
-
519
- - 25e35a1: fix: prefer useLayoutEffect in react-native
520
-
521
- ## 8.2.0
522
-
523
- ### Minor Changes
524
-
525
- - 9770d7d: feat: expose ThreeElements interface for JSX elements
526
-
527
- ## 8.1.0
528
-
529
- ### Minor Changes
530
-
531
- - 8d0f708c: Expose position information in state.size
532
-
533
- ## 8.0.27
534
-
535
- ### Patch Changes
536
-
537
- - 7940995: fix: resume on xrsession end, export internal events
538
-
539
- ## 8.0.26
540
-
541
- ### Patch Changes
542
-
543
- - 7b6df9df: fix: infinite loop updating cam viewport
544
-
545
- ## 8.0.25
546
-
547
- ### Patch Changes
548
-
549
- - b7cd0f42: update viewport on camera changes
550
-
551
- ## 8.0.24
552
-
553
- ### Patch Changes
554
-
555
- - ee8e785: fix: attach timings
556
-
557
- ## 8.0.23
558
-
559
- ### Patch Changes
560
-
561
- - 29d03c64: revert multi attach
562
-
563
- ## 8.0.22
564
-
565
- ### Patch Changes
566
-
567
- - 419e854: fix: always prepare primitives
568
-
569
- ## 8.0.21
570
-
571
- ### Patch Changes
572
-
573
- - 3098b9b: fix: resizing in worker contexts, copy over attachments on reconstruct
574
-
575
- ## 8.0.20
576
-
577
- ### Patch Changes
578
-
579
- - 4c87bce: fix: attach, devtools, and perf fixes
580
-
581
- ## 8.0.19
582
-
583
- ### Patch Changes
584
-
585
- - 360b45a: fix: handle attach on reconstruct
586
-
587
- ## 8.0.18
588
-
589
- ### Patch Changes
590
-
591
- - be567c1: fix: suspense attach and three compat in webpack
592
-
593
- ## 8.0.17
594
-
595
- ### Patch Changes
596
-
597
- - 9e3369e: fix dom resize, improve native tree shaking
598
-
599
- ## 8.0.16
600
-
601
- ### Patch Changes
602
-
603
- - 669c45c: correctly type useLoader results
604
-
605
- ## 8.0.15
606
-
607
- ### Patch Changes
608
-
609
- - c4715d5f: allow invalidate to preempt more than 1 frame
610
-
611
- ## 8.0.14
612
-
613
- ### Patch Changes
614
-
615
- - 5559a119: Add support for recoverable errors
616
-
617
- ## 8.0.13
618
-
619
- ### Patch Changes
620
-
621
- - 9d77d8e2: fix: detach attribute removal
622
-
623
- ## 8.0.12
624
-
625
- ### Patch Changes
626
-
627
- - 3d10413f: fix portal layers
628
-
629
- ## 8.0.11
630
-
631
- ### Patch Changes
632
-
633
- - 5167b1e4: memoized.args can be undefined
634
-
635
- ## 8.0.10
636
-
637
- ### Patch Changes
638
-
639
- - eb321afd: fix: remount bug, allow portals to inject custom size
640
-
641
- ## 8.0.9
642
-
643
- ### Patch Changes
644
-
645
- - 624df949: fix: canvas unmount race condition"
646
-
647
- ## 8.0.8
648
-
649
- ### Patch Changes
650
-
651
- - 952a566: fix: react SSR
652
-
653
- ## 8.0.7
654
-
655
- ### Patch Changes
656
-
657
- - f63806b: fix: react SSR
658
-
659
- ## 8.0.6
660
-
661
- ### Patch Changes
662
-
663
- - d4bafb9: fix re-parenting, useframe not working properly in portals, attach crash
664
-
665
- ## 8.0.5
666
-
667
- ### Patch Changes
668
-
669
- - 227c328: fix pointer for root and portals
670
-
671
- ## 8.0.4
672
-
673
- ### Patch Changes
674
-
675
- - e981a72: fix: mock three color management, loosen peer dep
676
-
677
- ## 8.0.3
678
-
679
- ### Patch Changes
680
-
681
- - 3252aed: setevents needs to spread and be mirrored in portals
682
-
683
- ## 8.0.2
684
-
685
- ### Patch Changes
686
-
687
- - 8035d1f: fix: legacy mode
688
-
689
- ## 8.0.1
690
-
691
- ### Patch Changes
692
-
693
- - 26db195: add legacy flag to turn of three.colormanagement
694
-
695
- ## 8.0.0
696
-
697
- ### Major Changes
698
-
699
- - 385ba9c: v8 major, react-18 compat
700
- - 04c07b8: v8 major, react-18 compat
701
-
702
- ### Patch Changes
703
-
704
- - 347ea79: new beta for library testing
705
-
706
- ## 8.0.0-beta.0
707
-
708
- ### Major Changes
709
-
710
- - 385ba9c: v8 major, react-18 compat
711
-
712
- ## 8.0.0-beta.0
713
-
714
- ### Patch Changes
715
-
716
- - cf6316c: new beta for library testing
717
-
718
- ## 7.0.25
719
-
720
- ### Patch Changes
721
-
722
- - 8698734: Release latest patches
723
-
724
- ## 7.0.24
725
-
726
- ### Patch Changes
727
-
728
- - 7f46ddf: cleanup captured pointers when released (#1914)
729
-
730
- ## 7.0.23
731
-
732
- ### Patch Changes
733
-
734
- - 30d38b1: remove logs
735
-
736
- ## 7.0.22
737
-
738
- ### Patch Changes
739
-
740
- - 259e1fa: add camera:manual
741
-
742
- ## 7.0.21
743
-
744
- ### Patch Changes
745
-
746
- - 65e4147: up usemeasure, add last event to internals"
747
-
748
- ## 7.0.20
749
-
750
- ### Patch Changes
751
-
752
- - 54cb0fd: update react-use-measure, allow it to use the offsetSize
753
-
754
- ## 7.0.19
755
-
756
- ### Patch Changes
757
-
758
- - 7aa2eab: fix: remove zustand subcribe selector
759
-
760
- ## 7.0.18
761
-
762
- ### Patch Changes
763
-
764
- - 6780f58: fix unmount pointer capture
765
-
766
- ## 7.0.17
767
-
768
- ### Patch Changes
769
-
770
- - 894c550: fix: event count
771
-
772
- ## 7.0.16
773
-
774
- ### Patch Changes
775
-
776
- - c7a4220: patch: applyprops returns the same instance
777
-
778
- ## 7.0.15
779
-
780
- ### Patch Changes
781
-
782
- - c5645e8: fix primitve leftovers on switch
783
-
784
- ## 7.0.14
785
-
786
- ### Patch Changes
787
-
788
- - 05af996: fix: revert the is function
789
-
790
- ## 7.0.13
791
-
792
- ### Patch Changes
793
-
794
- - f256558: fix(core): don't overwrite camera rotation
795
- - 51e6fc9: fix(core): safely handle external instances
796
-
797
- ## 7.0.12
798
-
799
- ### Patch Changes
800
-
801
- - 0df6073: fix: missed events
802
-
803
- ## 7.0.11
804
-
805
- ### Patch Changes
806
-
807
- - 62b0a3a: fix: event order of missed pointers
808
-
809
- ## 7.0.10
810
-
811
- ### Patch Changes
812
-
813
- - e019dd4: fixes
814
-
815
- ## 7.0.9
816
-
817
- ### Patch Changes
818
-
819
- - cd266e4: Fix diffProps dashed keys
820
-
821
- ## 7.0.8
822
-
823
- ### Patch Changes
824
-
825
- - 6f68406: Allow getCurrentViewport to receive an array
826
-
827
- ## 7.0.7
828
-
829
- ### Patch Changes
830
-
831
- - 0375896: Simplify useframe, support instanced event cancelation, silence disposal
832
-
833
- ## 7.0.6
834
-
835
- ### Patch Changes
836
-
837
- - fb052ad: Fix babel-env browserslist transpiling into old code"
838
-
839
- ## 7.0.5
840
-
841
- ### Patch Changes
842
-
843
- - c97794a: Add useLoader.clear(Loader, input)
844
-
845
- ## 7.0.4
846
-
847
- ### Patch Changes
848
-
849
- - 974ecfb: Allow elements to define attachFns for specific mount/unmount
850
-
851
- ## 7.0.2
852
-
853
- ### Patch Changes
854
-
855
- - a97aca3: Add controls state field
856
- - 4c703d6: fix rttr didn't work with r130
857
-
858
- ## 7.0.0
859
-
860
- ### Major Changes
861
-
862
- - 96ae1ad: fix javascript interpreting negative renderpriority as positive
863
-
864
- This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
865
-
866
- ```jsx
867
- useFrame(..., -1)
868
- ```
869
-
870
- Surprisingly this disabled auto-rendering although the documentation says positive numbers only. As of v7 this will not take over the render loop.
871
-
872
- ```jsx
873
- function Render() {
874
- // Takes over the render-loop, the user has the responsibility to render
875
- useFrame(({ gl, scene, camera }) => {
876
- gl.render(scene, camera)
877
- }, 1)
878
-
879
- function RenderOnTop() {
880
- // This will render on top of the previous call
881
- useFrame(({ gl, ... }) => {
882
- gl.render(...)
883
- }, 2)
884
-
885
- function A() {
886
- // Will *not* take over the render-loop, negative indices can still be useful for sorting
887
- useFrame(() => ..., -1)
888
-
889
- function B() {
890
- // B's useFrame will execute *after* A's
891
- useFrame(() => ..., -2)
892
- ```
893
-
894
- ## 6.2.3
895
-
896
- ### Patch Changes
897
-
898
- - 26bc7eb: typescript changes
899
-
900
- ## 6.2.2
901
-
902
- ### Patch Changes
903
-
904
- - 4f44a2c: use more helpful name with event handling in rttr
905
-
906
- ## 6.2.1
907
-
908
- ### Patch Changes
909
-
910
- - Fix stopPropagation logic
911
-
912
- ## 6.2.0
913
-
914
- ### Minor Changes
915
-
916
- - Allow object3d instances to be attached
917
-
918
- ## 6.1.5
919
-
920
- ### Patch Changes
921
-
922
- - fix(rttr): if children is undefined return an array to map with
923
-
924
- ## 6.1.4
925
-
926
- ### Patch Changes
927
-
928
- - 6faa090: Add shape to types, exclude event functions from event data
929
-
930
- ## 6.1.3
931
-
932
- ### Patch Changes
933
-
934
- - 71e72c0: Fix constructor args with attached children (#1348)
935
- - 015fc03: Only set up pointer/wheel events as passive
936
- - a160e08: Fix event setPointerCapture and stopPropagation.
937
-
938
- ## 6.1.2
1
+ # @react-three/fiber
2
+
3
+ ## 8.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 6b0ea6eb: feat: add childadded event dispatch
8
+
9
+ ## 8.15.19
10
+
11
+ ### Patch Changes
12
+
13
+ - 74926b94: fix(types): avoid emitting THREE.XRFrame
14
+
15
+ ## 8.15.18
16
+
17
+ ### Patch Changes
18
+
19
+ - 8c01939a: fix: correctly pass frames in invalidate
20
+
21
+ ## 8.15.17
22
+
23
+ ### Patch Changes
24
+
25
+ - 16c2ee97: fix(types): support @types/three@0.162.0
26
+
27
+ ## 8.15.16
28
+
29
+ ### Patch Changes
30
+
31
+ - 71cd8f96: fix: tonemapping config overwrites userland
32
+ - 0bb12fd1: fix(types): remove usage of THREE.Vector
33
+
34
+ ## 8.15.14
35
+
36
+ ### Patch Changes
37
+
38
+ - 0afc9c12: fix: portal events, update examples
39
+
40
+ ## 8.15.13
41
+
42
+ ### Patch Changes
43
+
44
+ - 0a399f6d: fix(native): use MSAA for antialias on iOS
45
+
46
+ ## 8.15.12
47
+
48
+ ### Patch Changes
49
+
50
+ - 496d6f0d: fix: useLoader and XRFrame type fixes
51
+
52
+ ## 8.15.11
53
+
54
+ ### Patch Changes
55
+
56
+ - 3d9af04d: fix: update import from three examples
57
+
58
+ ## 8.15.10
59
+
60
+ ### Patch Changes
61
+
62
+ - 49158164: fix: don't recursively dispose primitives
63
+
64
+ ## 8.15.9
65
+
66
+ ### Patch Changes
67
+
68
+ - 4cbc5530: fix(native): deopt iOS blob URI path
69
+
70
+ ## 8.15.8
71
+
72
+ ### Patch Changes
73
+
74
+ - 70680832: fix: revert stable sort
75
+
76
+ ## 8.15.7
77
+
78
+ ### Patch Changes
79
+
80
+ - 07e39e2e: fix(types): remove use of Object3D generic
81
+
82
+ ## 8.15.6
83
+
84
+ ### Patch Changes
85
+
86
+ - 7bb2950b: experiment: stable object sort
87
+
88
+ ## 8.15.5
89
+
90
+ ### Patch Changes
91
+
92
+ - 0e44fd8b: fix(types): preserve deprecated JSX annotations
93
+
94
+ ## 8.15.4
95
+
96
+ ### Patch Changes
97
+
98
+ - 634e5db5: fix(native): harden Blob URI check for Android
99
+
100
+ ## 8.15.3
101
+
102
+ ### Patch Changes
103
+
104
+ - beab4344: fix(native): workaround Android content policy for Blob URI
105
+
106
+ ## 8.15.2
107
+
108
+ ### Patch Changes
109
+
110
+ - 086d3932: fix: size check and raycaster camera
111
+
112
+ ## 8.15.1
113
+
114
+ ### Patch Changes
115
+
116
+ - 2d39676d: fix: ignore deprecated types, use correct XRFrame definition
117
+
118
+ ## 8.15.0
119
+
120
+ ### Minor Changes
121
+
122
+ - cca8b6bb: feat: export buildGraph
123
+
124
+ ## 8.14.7
125
+
126
+ ### Patch Changes
127
+
128
+ - 0f63a287: fix(native): restore polyfill conversions, drop networking
129
+
130
+ ## 8.14.6
131
+
132
+ ### Patch Changes
133
+
134
+ - 465fa0fb: fix(native): revert usage of networking stack
135
+
136
+ ## 8.14.5
137
+
138
+ ### Patch Changes
139
+
140
+ - f372a5b5: fix(applyProps): loosen copy identity in dev
141
+
142
+ ## 8.14.4
143
+
144
+ ### Patch Changes
145
+
146
+ - dc7e5739: fix(native): amend BlobManager over globals
147
+
148
+ ## 8.14.3
149
+
150
+ ### Patch Changes
151
+
152
+ - d77b0990: fix(native): drop fsstat for react-native-web
153
+
154
+ ## 8.14.2
155
+
156
+ ### Patch Changes
157
+
158
+ - 33e8baef: fix: native perf, loader types
159
+
160
+ ## 8.14.1
161
+
162
+ ### Patch Changes
163
+
164
+ - c99907bf: fix(native): prefer local uri for fs
165
+
166
+ ## 8.14.0
167
+
168
+ ### Minor Changes
169
+
170
+ - 89e96bf4: feat: react-native-web, native globals fixes
171
+
172
+ ## 8.13.9
173
+
174
+ ### Patch Changes
175
+
176
+ - 44d57b3c: fix(native): TextureLoader should remain consistent with FileLoader
177
+
178
+ ## 8.13.8
179
+
180
+ ### Patch Changes
181
+
182
+ - 5da26d52: fix(useLoader): dispose loaders
183
+
184
+ ## 8.13.7
185
+
186
+ ### Patch Changes
187
+
188
+ - 37b9502a: fix(Canvas): pass scene prop
189
+
190
+ ## 8.13.6
191
+
192
+ ### Patch Changes
193
+
194
+ - 0597495c: fix: harden XR init against Renderer shim
195
+
196
+ ## 8.13.5
197
+
198
+ ### Patch Changes
199
+
200
+ - 7a3b543b: fix: three type regressions
201
+
202
+ ## 8.13.4
203
+
204
+ ### Patch Changes
205
+
206
+ - 824ee0f7: fix: safely diff instances
207
+
208
+ ## 8.13.3
209
+
210
+ ### Patch Changes
211
+
212
+ - ffdb5fc4: revert nested portals, up suspend-react
213
+
214
+ ## 8.13.2
215
+
216
+ ### Patch Changes
217
+
218
+ - bbabdf07: update suspend-react
219
+
220
+ ## 8.13.1
221
+
222
+ ### Patch Changes
223
+
224
+ - c9fe03ba: fix: primitive swap and reactive portals
225
+
226
+ ## 8.13.0
227
+
228
+ ### Minor Changes
229
+
230
+ - ecfc48b7: feat: CanvasProps alias, respect r152 color management
231
+
232
+ ## 8.12.2
233
+
234
+ ### Patch Changes
235
+
236
+ - c5193468: fix: safeguard window.devicePixelRatio
237
+
238
+ ## 8.12.1
239
+
240
+ ### Patch Changes
241
+
242
+ - 571f07ac: fix: safeguard window.devicePixelRatio
243
+
244
+ ## 8.12.0
245
+
246
+ ### Minor Changes
247
+
248
+ - 1928d095: feat: `scene` render prop for custom THREE.Scene
249
+
250
+ ## 8.11.11
251
+
252
+ ### Patch Changes
253
+
254
+ - f03c6ef8: feat: `scene` render prop for custom THREE.Scene
255
+
256
+ ## 8.11.10
257
+
258
+ ### Patch Changes
259
+
260
+ - 12907836: fix onpointerlostcapture which fired before pointerup
261
+
262
+ ## 8.11.9
263
+
264
+ ### Patch Changes
265
+
266
+ - 6b5f572c: fix: treeshake THREE.ColorManagement
267
+
268
+ ## 8.11.8
269
+
270
+ ### Patch Changes
271
+
272
+ - 350cd3f3: fix(Canvas): inline render-effect
273
+
274
+ ## 8.11.7
275
+
276
+ ### Patch Changes
277
+
278
+ - 96af62d5: fix: don't overwrite public cameras
279
+
280
+ ## 8.11.6
281
+
282
+ ### Patch Changes
283
+
284
+ - 7d319c18: Fix is.equ obj:shallow, allow it to test arrays 1 level deep, fix canvas.camera prop being stale
285
+
286
+ ## 8.11.5
287
+
288
+ ### Patch Changes
289
+
290
+ - c658f763: fix: update canvas prop types
291
+
292
+ ## 8.11.4
293
+
294
+ ### Patch Changes
295
+
296
+ - 970aa58b: fix: play nice with offscreencanvas
297
+
298
+ ## 8.11.3
299
+
300
+ ### Patch Changes
301
+
302
+ - 2bce569c: fix: progressively set colormanagement
303
+
304
+ ## 8.11.2
305
+
306
+ ### Patch Changes
307
+
308
+ - 41d655cd: fix: hmr, srgb encode
309
+
310
+ ## 8.11.1
311
+
312
+ ### Patch Changes
313
+
314
+ - 58cadeff: fix: skip circular onUpdate calls
315
+
316
+ ## 8.11.0
317
+
318
+ ### Minor Changes
319
+
320
+ - 2917a47b: events.update, allow raycast w/o user interaction
321
+ - 521bfb07: events.update, allow raycast w/o user interaction
322
+
323
+ ## 8.10.4
324
+
325
+ ### Patch Changes
326
+
327
+ - d9e6316d: fix: transpile class properties
328
+
329
+ ## 8.10.3
330
+
331
+ ### Patch Changes
332
+
333
+ - d06d2879: fix: align useLoader type, public fields from builds
334
+
335
+ ## 8.10.2
336
+
337
+ ### Patch Changes
338
+
339
+ - 564edbbb: fix port inject layers, it should allow root props to overwrite indefined portal props"
340
+
341
+ ## 8.10.1
342
+
343
+ ### Patch Changes
344
+
345
+ - bfa0298f: fix memoized identity
346
+
347
+ ## 8.10.0
348
+
349
+ ### Minor Changes
350
+
351
+ - 24c4dba4: shortcut for shadow type
352
+
353
+ ## 8.9.2
354
+
355
+ ### Patch Changes
356
+
357
+ - 2aeb6500: fix: primitives are incorrectly swapped on key change in maps
358
+
359
+ ## 8.9.1
360
+
361
+ ### Patch Changes
362
+
363
+ - 0cf11797: fix(events): type spread event props
364
+
365
+ ## 8.9.0
366
+
367
+ ### Minor Changes
368
+
369
+ - a458b4dd: fix(loop): export flush methods and types
370
+
371
+ ## 8.8.11
372
+
373
+ ### Patch Changes
374
+
375
+ - 2068f0cc: fix: events pointerlock, useLoader extension types
376
+
377
+ ## 8.8.10
378
+
379
+ ### Patch Changes
380
+
381
+ - 00c24718: fix: invalidate pierced props
382
+
383
+ ## 8.8.9
384
+
385
+ ### Patch Changes
386
+
387
+ - 4254400e: fix(createPortal): use correct JSX type
388
+
389
+ ## 8.8.8
390
+
391
+ ### Patch Changes
392
+
393
+ - fcb183e3: fix: call onUpdate for attached children prop update
394
+
395
+ ## 8.8.7
396
+
397
+ ### Patch Changes
398
+
399
+ - bedb16e7: fix: prefer named functions, for loops in hot paths
400
+
401
+ ## 8.8.6
402
+
403
+ ### Patch Changes
404
+
405
+ - 02a558bb: fix: upgrade deps
406
+
407
+ ## 8.8.5
408
+
409
+ ### Patch Changes
410
+
411
+ - 530a06d6: fix: upgrade deps to work-around CRA
412
+
413
+ ## 8.8.4
414
+
415
+ ### Patch Changes
416
+
417
+ - 2f2dc9f9: chore: upgrade bridge to harden suspense behavior
418
+
419
+ ## 8.8.3
420
+
421
+ ### Patch Changes
422
+
423
+ - 9f571239: fix #2506, events should fall back to rootstate"
424
+
425
+ ## 8.8.2
426
+
427
+ ### Patch Changes
428
+
429
+ - dc389ed6: fix(Canvas): prevent remount on context update
430
+
431
+ ## 8.8.1
432
+
433
+ ### Patch Changes
434
+
435
+ - 370d3ae5: refactor: pull context bridge from its-fine
436
+
437
+ ## 8.8.0
438
+
439
+ ### Minor Changes
440
+
441
+ - 46d8b440: bridge cross-container context
442
+
443
+ ## 8.7.4
444
+
445
+ ### Patch Changes
446
+
447
+ - 259c8895: fix: use self to get global context before window
448
+
449
+ ## 8.7.3
450
+
451
+ ### Patch Changes
452
+
453
+ - eb5a3be4: fix: if there is an eventsource pointerevent will be set to none
454
+
455
+ ## 8.7.2
456
+
457
+ ### Patch Changes
458
+
459
+ - 7f801e60: fix: events in portals carry the wrong raycaster, camera, etc
460
+
461
+ ## 8.7.1
462
+
463
+ ### Patch Changes
464
+
465
+ - 962cc270: fix: allow canvas eventsource to be a ref
466
+
467
+ ## 8.7.0
468
+
469
+ ### Minor Changes
470
+
471
+ - f5db1b78: feat: useInstanceHandle, flushGlobalEffects
472
+
473
+ ## 8.6.2
474
+
475
+ ### Patch Changes
476
+
477
+ - 57c12e9c: fix(types): @react-three/drei declaration files
478
+
479
+ ## 8.6.1
480
+
481
+ ### Patch Changes
482
+
483
+ - 7a0b5670: fix(core): don't append to unmounted containers
484
+
485
+ ## 8.6.0
486
+
487
+ ### Minor Changes
488
+
489
+ - 85c80e70: eventsource and eventprefix on the canvas component
490
+
491
+ ## 8.5.1
492
+
493
+ ### Patch Changes
494
+
495
+ - 87821d9: fix: null-check instance.children on reconstruct
496
+
497
+ ## 8.5.0
498
+
499
+ ### Minor Changes
500
+
501
+ - edc8252: feat: handle primitive children, auto-attach via instanceof
502
+
503
+ ## 8.3.1
504
+
505
+ ### Patch Changes
506
+
507
+ - aaeb2b8: fix(types): accept readonly arrays for vector props
508
+
509
+ ## 8.3.0
510
+
511
+ ### Minor Changes
512
+
513
+ - 9c450ec: feat: improve errors
514
+
515
+ ## 8.2.3
516
+
517
+ ### Patch Changes
518
+
519
+ - b8d2eab: fix: improve useLoader signature, initial size on createRoot
520
+
521
+ ## 8.2.2
522
+
523
+ ### Patch Changes
524
+
525
+ - acd6f04: fix: warn on stray text
526
+
527
+ ## 8.2.1
528
+
529
+ ### Patch Changes
530
+
531
+ - 25e35a1: fix: prefer useLayoutEffect in react-native
532
+
533
+ ## 8.2.0
534
+
535
+ ### Minor Changes
536
+
537
+ - 9770d7d: feat: expose ThreeElements interface for JSX elements
538
+
539
+ ## 8.1.0
540
+
541
+ ### Minor Changes
542
+
543
+ - 8d0f708c: Expose position information in state.size
544
+
545
+ ## 8.0.27
546
+
547
+ ### Patch Changes
548
+
549
+ - 7940995: fix: resume on xrsession end, export internal events
550
+
551
+ ## 8.0.26
552
+
553
+ ### Patch Changes
554
+
555
+ - 7b6df9df: fix: infinite loop updating cam viewport
556
+
557
+ ## 8.0.25
558
+
559
+ ### Patch Changes
560
+
561
+ - b7cd0f42: update viewport on camera changes
562
+
563
+ ## 8.0.24
564
+
565
+ ### Patch Changes
566
+
567
+ - ee8e785: fix: attach timings
568
+
569
+ ## 8.0.23
570
+
571
+ ### Patch Changes
572
+
573
+ - 29d03c64: revert multi attach
574
+
575
+ ## 8.0.22
576
+
577
+ ### Patch Changes
578
+
579
+ - 419e854: fix: always prepare primitives
580
+
581
+ ## 8.0.21
582
+
583
+ ### Patch Changes
584
+
585
+ - 3098b9b: fix: resizing in worker contexts, copy over attachments on reconstruct
586
+
587
+ ## 8.0.20
588
+
589
+ ### Patch Changes
590
+
591
+ - 4c87bce: fix: attach, devtools, and perf fixes
592
+
593
+ ## 8.0.19
594
+
595
+ ### Patch Changes
596
+
597
+ - 360b45a: fix: handle attach on reconstruct
598
+
599
+ ## 8.0.18
600
+
601
+ ### Patch Changes
602
+
603
+ - be567c1: fix: suspense attach and three compat in webpack
604
+
605
+ ## 8.0.17
606
+
607
+ ### Patch Changes
608
+
609
+ - 9e3369e: fix dom resize, improve native tree shaking
610
+
611
+ ## 8.0.16
612
+
613
+ ### Patch Changes
614
+
615
+ - 669c45c: correctly type useLoader results
616
+
617
+ ## 8.0.15
618
+
619
+ ### Patch Changes
620
+
621
+ - c4715d5f: allow invalidate to preempt more than 1 frame
622
+
623
+ ## 8.0.14
624
+
625
+ ### Patch Changes
626
+
627
+ - 5559a119: Add support for recoverable errors
628
+
629
+ ## 8.0.13
630
+
631
+ ### Patch Changes
632
+
633
+ - 9d77d8e2: fix: detach attribute removal
634
+
635
+ ## 8.0.12
636
+
637
+ ### Patch Changes
638
+
639
+ - 3d10413f: fix portal layers
640
+
641
+ ## 8.0.11
642
+
643
+ ### Patch Changes
644
+
645
+ - 5167b1e4: memoized.args can be undefined
646
+
647
+ ## 8.0.10
648
+
649
+ ### Patch Changes
650
+
651
+ - eb321afd: fix: remount bug, allow portals to inject custom size
652
+
653
+ ## 8.0.9
654
+
655
+ ### Patch Changes
656
+
657
+ - 624df949: fix: canvas unmount race condition"
658
+
659
+ ## 8.0.8
660
+
661
+ ### Patch Changes
662
+
663
+ - 952a566: fix: react SSR
664
+
665
+ ## 8.0.7
666
+
667
+ ### Patch Changes
668
+
669
+ - f63806b: fix: react SSR
670
+
671
+ ## 8.0.6
672
+
673
+ ### Patch Changes
674
+
675
+ - d4bafb9: fix re-parenting, useframe not working properly in portals, attach crash
676
+
677
+ ## 8.0.5
678
+
679
+ ### Patch Changes
680
+
681
+ - 227c328: fix pointer for root and portals
682
+
683
+ ## 8.0.4
684
+
685
+ ### Patch Changes
686
+
687
+ - e981a72: fix: mock three color management, loosen peer dep
688
+
689
+ ## 8.0.3
690
+
691
+ ### Patch Changes
692
+
693
+ - 3252aed: setevents needs to spread and be mirrored in portals
694
+
695
+ ## 8.0.2
696
+
697
+ ### Patch Changes
698
+
699
+ - 8035d1f: fix: legacy mode
700
+
701
+ ## 8.0.1
702
+
703
+ ### Patch Changes
704
+
705
+ - 26db195: add legacy flag to turn of three.colormanagement
706
+
707
+ ## 8.0.0
708
+
709
+ ### Major Changes
710
+
711
+ - 385ba9c: v8 major, react-18 compat
712
+ - 04c07b8: v8 major, react-18 compat
713
+
714
+ ### Patch Changes
715
+
716
+ - 347ea79: new beta for library testing
717
+
718
+ ## 8.0.0-beta.0
719
+
720
+ ### Major Changes
721
+
722
+ - 385ba9c: v8 major, react-18 compat
723
+
724
+ ## 8.0.0-beta.0
725
+
726
+ ### Patch Changes
727
+
728
+ - cf6316c: new beta for library testing
729
+
730
+ ## 7.0.25
731
+
732
+ ### Patch Changes
733
+
734
+ - 8698734: Release latest patches
735
+
736
+ ## 7.0.24
737
+
738
+ ### Patch Changes
739
+
740
+ - 7f46ddf: cleanup captured pointers when released (#1914)
741
+
742
+ ## 7.0.23
743
+
744
+ ### Patch Changes
745
+
746
+ - 30d38b1: remove logs
747
+
748
+ ## 7.0.22
749
+
750
+ ### Patch Changes
751
+
752
+ - 259e1fa: add camera:manual
753
+
754
+ ## 7.0.21
755
+
756
+ ### Patch Changes
757
+
758
+ - 65e4147: up usemeasure, add last event to internals"
759
+
760
+ ## 7.0.20
761
+
762
+ ### Patch Changes
763
+
764
+ - 54cb0fd: update react-use-measure, allow it to use the offsetSize
765
+
766
+ ## 7.0.19
767
+
768
+ ### Patch Changes
769
+
770
+ - 7aa2eab: fix: remove zustand subcribe selector
771
+
772
+ ## 7.0.18
773
+
774
+ ### Patch Changes
775
+
776
+ - 6780f58: fix unmount pointer capture
777
+
778
+ ## 7.0.17
779
+
780
+ ### Patch Changes
781
+
782
+ - 894c550: fix: event count
783
+
784
+ ## 7.0.16
785
+
786
+ ### Patch Changes
787
+
788
+ - c7a4220: patch: applyprops returns the same instance
789
+
790
+ ## 7.0.15
791
+
792
+ ### Patch Changes
793
+
794
+ - c5645e8: fix primitve leftovers on switch
795
+
796
+ ## 7.0.14
797
+
798
+ ### Patch Changes
799
+
800
+ - 05af996: fix: revert the is function
801
+
802
+ ## 7.0.13
803
+
804
+ ### Patch Changes
805
+
806
+ - f256558: fix(core): don't overwrite camera rotation
807
+ - 51e6fc9: fix(core): safely handle external instances
808
+
809
+ ## 7.0.12
810
+
811
+ ### Patch Changes
812
+
813
+ - 0df6073: fix: missed events
814
+
815
+ ## 7.0.11
816
+
817
+ ### Patch Changes
818
+
819
+ - 62b0a3a: fix: event order of missed pointers
820
+
821
+ ## 7.0.10
822
+
823
+ ### Patch Changes
824
+
825
+ - e019dd4: fixes
826
+
827
+ ## 7.0.9
828
+
829
+ ### Patch Changes
830
+
831
+ - cd266e4: Fix diffProps dashed keys
832
+
833
+ ## 7.0.8
834
+
835
+ ### Patch Changes
836
+
837
+ - 6f68406: Allow getCurrentViewport to receive an array
838
+
839
+ ## 7.0.7
840
+
841
+ ### Patch Changes
842
+
843
+ - 0375896: Simplify useframe, support instanced event cancelation, silence disposal
844
+
845
+ ## 7.0.6
846
+
847
+ ### Patch Changes
848
+
849
+ - fb052ad: Fix babel-env browserslist transpiling into old code"
850
+
851
+ ## 7.0.5
852
+
853
+ ### Patch Changes
854
+
855
+ - c97794a: Add useLoader.clear(Loader, input)
856
+
857
+ ## 7.0.4
858
+
859
+ ### Patch Changes
860
+
861
+ - 974ecfb: Allow elements to define attachFns for specific mount/unmount
862
+
863
+ ## 7.0.2
864
+
865
+ ### Patch Changes
866
+
867
+ - a97aca3: Add controls state field
868
+ - 4c703d6: fix rttr didn't work with r130
869
+
870
+ ## 7.0.0
871
+
872
+ ### Major Changes
873
+
874
+ - 96ae1ad: fix javascript interpreting negative renderpriority as positive
875
+
876
+ This is a major breaking change that will fix an edge-case. It will only affect you if you used negative useFrame indicies, for instance
877
+
878
+ ```jsx
879
+ useFrame(..., -1)
880
+ ```
881
+
882
+ Surprisingly this disabled auto-rendering although the documentation says positive numbers only. As of v7 this will not take over the render loop.
883
+
884
+ ```jsx
885
+ function Render() {
886
+ // Takes over the render-loop, the user has the responsibility to render
887
+ useFrame(({ gl, scene, camera }) => {
888
+ gl.render(scene, camera)
889
+ }, 1)
890
+
891
+ function RenderOnTop() {
892
+ // This will render on top of the previous call
893
+ useFrame(({ gl, ... }) => {
894
+ gl.render(...)
895
+ }, 2)
896
+
897
+ function A() {
898
+ // Will *not* take over the render-loop, negative indices can still be useful for sorting
899
+ useFrame(() => ..., -1)
900
+
901
+ function B() {
902
+ // B's useFrame will execute *after* A's
903
+ useFrame(() => ..., -2)
904
+ ```
905
+
906
+ ## 6.2.3
907
+
908
+ ### Patch Changes
909
+
910
+ - 26bc7eb: typescript changes
911
+
912
+ ## 6.2.2
913
+
914
+ ### Patch Changes
915
+
916
+ - 4f44a2c: use more helpful name with event handling in rttr
917
+
918
+ ## 6.2.1
919
+
920
+ ### Patch Changes
921
+
922
+ - Fix stopPropagation logic
923
+
924
+ ## 6.2.0
925
+
926
+ ### Minor Changes
927
+
928
+ - Allow object3d instances to be attached
929
+
930
+ ## 6.1.5
931
+
932
+ ### Patch Changes
933
+
934
+ - fix(rttr): if children is undefined return an array to map with
935
+
936
+ ## 6.1.4
937
+
938
+ ### Patch Changes
939
+
940
+ - 6faa090: Add shape to types, exclude event functions from event data
941
+
942
+ ## 6.1.3
943
+
944
+ ### Patch Changes
945
+
946
+ - 71e72c0: Fix constructor args with attached children (#1348)
947
+ - 015fc03: Only set up pointer/wheel events as passive
948
+ - a160e08: Fix event setPointerCapture and stopPropagation.
949
+
950
+ ## 6.1.2