Skip to content

Directive collision #134

Description

@Kansuler

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions