\r\n \u003C/Suspense>\r\n```\r\nBut get `Failed to resolve component: primitive`",[],"lab","How to load and render STL models?","2024-07-17T17:42:39Z","https://github.com/Tresjs/lab/issues/53",0.72022253,{"description":2898,"labels":2899,"number":2906,"owner":2863,"repository":2907,"state":2865,"title":2908,"updated_at":2909,"url":2910,"score":2911},"### Describe the bug\n\nThe examples under https://cientos.tresjs.org/guide/misc/html-component.html#html are currently broken\n\n### Reproduction\n\nhttps://cientos.tresjs.org/guide/misc/html-component.html#html\n\n### Steps to reproduce\n\n_No response_\n\n### System Info\n\n_No response_\n\n### Used Package Manager\n\nnpm\n\n### Code of Conduct\n\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/Tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[2900,2903],{"name":2901,"color":2902},"bug","d73a4a",{"name":2904,"color":2905},"docs","0075ca",368,"cientos","[Docs] - HTML examples are broken ","2024-07-18T08:07:36Z","https://github.com/Tresjs/cientos/issues/368",0.72031903,{"description":2913,"labels":2914,"number":2917,"owner":2863,"repository":2864,"state":2865,"title":2918,"updated_at":2919,"url":2920,"score":2921},"### Description\n\nAs a maintainer of TresJS, I would like to clean up the core logic by refactoring it to use VueUse `createInjectionState` https://vueuse.org/shared/createInjectionState/#createinjectionstate instead\n\n### Suggested solution\n\nReplace manual context provider with something like:\n\n```ts\nconst [useTresContextProvider, useTresContext] = createInjectionState((props, emit) => {\n // Create refs with initial null values\n const scene = shallowRef\u003CTresScene | null>(null)\n const renderer = shallowRef\u003CWebGLRenderer | null>(null)\n const camera = shallowRef\u003CPerspectiveCamera | null>(null)\n const loop = createRenderLoop()\n\n // Render mode logic etc\n})\n\nexport { useTresContext, useTresContextProvider }\n```\n\n### Alternative\n\n_No response_\n\n### Additional context\n\n_No response_\n\n### Validations\n\n- [x] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\n- [x] Read the [docs](https://tresjs.org/guide).\n- [x] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.",[2915,2916],{"name":2857,"color":2858},{"name":2860,"color":2861},961,"Refactor `useTresContextProvider` into `createInjectionState`","2025-03-18T15:30:44Z","https://github.com/Tresjs/tres/issues/961",0.7299506,{"description":2923,"labels":2924,"number":2925,"owner":2863,"repository":2907,"state":2926,"title":2927,"updated_at":2928,"url":2929,"score":2930},"### Description\r\n\r\nAdapt `cientos` package to https://github.com/Tresjs/tres/issues/331 changes\r\n\r\n#### Abstractions\r\n\r\n- [x] Environment\r\n- [x] MouseParallax\r\n- [x] Stars\r\n- [x] Smoke\r\n- [x] Levioso\r\n- [x] Contact Shadows\r\n- [x] Precipitation\r\n\r\n#### Controls\r\n- [x] OrbitControls @alvarosabu \r\n- [x] TransformControls\r\n- [x] PointerLockControls\r\n- [x] KeyboardControls\r\n- [x] MapControls\r\n- [x] ScrollControls\r\n\r\n### Materials\r\n\r\n- [x] WobbleMaterial\r\n\r\n### Staging\r\n\r\n- [x] Backdrop\r\n\r\n### Misc\r\n\r\n- [x] useTweakpane\r\n\r\n### Suggested solution\r\n\r\n- [x] Refactor watchers \r\n- [x] Remove deconstruct props if needed\r\n- [x] Merge to 'next'\r\n\r\n### Alternative\r\n\r\n_No response_\r\n\r\n### Additional context\r\n\r\n_No response_\r\n\r\n### Validations\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/cientos/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/cientos/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://cientos.tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/cientos/issues) that reports the same bug to avoid creating a duplicate.",[],120,"closed","Refactor useCientos to new state context provider","2023-07-29T11:45:37Z","https://github.com/Tresjs/cientos/issues/120",0.68658406,{"description":2932,"labels":2933,"number":2925,"owner":2863,"repository":2937,"state":2926,"title":2938,"updated_at":2939,"url":2940,"score":2930},"**Is your feature request related to a problem? Please describe.**\r\nIt would be helpful for users to have the component's prop types available.\r\n",[2934],{"name":2935,"color":2936},"enhancement","a2eeef","post-processing","make prop types available","2024-10-15T14:41:37Z","https://github.com/Tresjs/post-processing/issues/120",{"description":2942,"labels":2943,"number":2954,"owner":2863,"repository":2864,"state":2926,"title":2955,"updated_at":2956,"url":2957,"score":2958},"### Describe the bug\r\n\r\nThis code logs `state.controls` null even if there is a Control in the scene (for example OrbitControls)\r\n\r\n```\r\nconst { onBeforeRender, pause, resume } = useLoop()\r\n\r\nconst updateCallback = (state) => {\r\n if (!sphereRef.value) { return }\r\n console.log(state.controls)\r\n sphereRef.value.position.y += Math.sin(state.elapsed) * 0.01\r\n}\r\n```\r\n\r\nThe problem is here https://github.com/Tresjs/tres/blob/0720d186e92ca9faa9e5f4e51a3269504bed2a09/src/composables/useLoop/index.ts#L18C4-L27C5\r\n\r\nWe are creating an snapshot of the time the `useLoop` is used, which doesn't contain the updated controls. \r\n\r\n\r\n\r\n### Reproduction\r\n\r\nlocal playground\r\n\r\n### Steps to reproduce\r\n\r\n_No response_\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: macOS 14.3.1\r\n CPU: (8) arm64 Apple M1 Pro\r\n Memory: 69.00 MB / 16.00 GB\r\n Shell: 5.9 - /bin/zsh\r\n Binaries:\r\n Node: 20.12.2 - ~/.nvm/versions/node/v20.12.2/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.5.0 - ~/.nvm/versions/node/v20.12.2/bin/npm\r\n pnpm: 8.15.4 - ~/Library/pnpm/pnpm\r\n bun: 1.0.2 - ~/.bun/bin/bun\r\n Browsers:\r\n Brave Browser: 120.1.61.116\r\n Chrome: 124.0.6367.208\r\n Safari: 17.3.1\r\n npmPackages:\r\n @tresjs/cientos: 3.8.0 => 3.8.0 \r\n @tresjs/core: workspace:^ => 4.0.0-rc.1 \r\n @tresjs/leches: 0.15.0-next.3 => 0.15.0-next.3\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\npnpm\r\n\r\n### Code of Conduct\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[2944,2945,2948,2951],{"name":2901,"color":2902},{"name":2946,"color":2947},"v4","7980EA",{"name":2949,"color":2950},"p4-important-bug","D93F0B",{"name":2952,"color":2953},"regression","167F7A",686,"`useLoop` callback state missing controls","2024-05-23T12:17:31Z","https://github.com/Tresjs/tres/issues/686",0.70498556,{"description":2960,"labels":2961,"number":2962,"owner":2863,"repository":2864,"state":2926,"title":2963,"updated_at":2964,"url":2965,"score":2966},"### Describe the bug\r\n\r\nAfter updating to `@4.2.0` I have begun seeing this error on mount and it points to my `router.ts` from `main.ts`\r\n> [Vue warn]: onUnmounted is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.\r\n\r\nI'm caching my `GLTF` model in a `pinia` store and this technique works fine in `4.0.2`. `cientos@4.0.0-next.1`.\r\nWhen I leave my experience page, I get the same error again and my cached model does not load. \r\n\r\n### Reproduction\r\n\r\n https://stackblitz.com/edit/tresjs-minimal-reproduction-7zvlfu?file=src%2Fstore.ts,src%2FApp.vue,src%2Fcomponents%2FTheExperience.vue\r\n\r\n### Steps to reproduce\r\n\r\n1) Load a model using `useGLTF` and store it in a `pinia` store as a `shallowRef`. \r\n2) `onMount` of the component that uses the model the `vue warn` appears. \r\n3) Navigate away from the page (by clicking the top buttons in repro)- the error appears a second time. \r\n4) Navigate back - the model is gone.\r\n\r\n### System Info\r\n\r\n```shell\r\nSystem:\r\n OS: Linux 5.0 undefined\r\n CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz\r\n Memory: 0 Bytes / 0 Bytes\r\n Shell: 1.0 - /bin/jsh\r\n Binaries:\r\n Node: 18.20.3 - /usr/local/bin/node\r\n Yarn: 1.22.19 - /usr/local/bin/yarn\r\n npm: 10.2.3 - /usr/local/bin/npm\r\n pnpm: 8.15.6 - /usr/local/bin/pnpm\r\n npmPackages:\r\n @tresjs/cientos: ^4.0.0-next.1 => 4.0.0-next.1 \r\n @tresjs/core: ^4.2.0 => 4.2.1 \r\n vite: ^5.3.2 => 5.3.2\r\n```\r\n\r\n\r\n### Used Package Manager\r\n\r\nnpm\r\n\r\n### Code of Conduct\r\n\r\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/Tresjs/tres/blob/main/CODE_OF_CONDUCT.md)\r\n- [X] Read the [Contributing Guidelines](https://github.com/Tresjs/tres/blob/main/CONTRIBUTING.md).\r\n- [X] Read the [docs](https://tresjs.org/guide).\r\n- [X] Check that there isn't [already an issue](https://github.com/tresjs/tres/issues) that reports the same bug to avoid creating a duplicate.\r\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],784,"[Vue warn]: onUnmounted ... after upgrading to `4.2.0` - cached model fails to reload","2024-10-31T06:46:17Z","https://github.com/Tresjs/tres/issues/784",0.71495074,["Reactive",2968],{},["Set"],["ShallowReactive",2971],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$ftCchCsnndE8yPJ_5uV2w9SZ8Hm8im_s4FywYrMWWOKw":-1},"/Tresjs/tres/766"]