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