I'm using a project with Svelte and three-elements and there is a collision when using the ref: directive. Svelte emits a deprecation warning that at the moment cannot be intercepted. The ref directive is no longer supported — use bind:this={material} instead.
I've started an issue in the Svelte repository about being able to intercept these errors, however ref is not uncommon as a directive.
I'd like to put forward two suggestions to give it more flexibility, and avoid collision with other libraries.
- Prefixing three-elements specific directives would avoid possible collisions with other libraries/frameworks.
- Expose the function that registers directives so that you are able to put an alias/register another directive with the same function.
I'm using a project with Svelte and three-elements and there is a collision when using the
ref:directive. Svelte emits a deprecation warning that at the moment cannot be intercepted.The ref directive is no longer supported — use bind:this={material} instead.I've started an issue in the Svelte repository about being able to intercept these errors, however
refis not uncommon as a directive.I'd like to put forward two suggestions to give it more flexibility, and avoid collision with other libraries.