github remix-run/remix @remix-run/interaction@0.4.0
@remix-run/interaction v0.4.0

latest releases: remix@3.0.0-alpha.0, @remix-run/static-middleware@0.4.1, @remix-run/file-storage@0.13.1...
10 hours ago

Minor Changes

  • BREAKING CHANGE: Interaction setup functions now receive handle as a parameter instead of using this context

    Interaction setup functions now receive the Interaction handle as a parameter:

    // Before
    function MyInteraction(this: Interaction) {
      this.on(this.target, { ... })
    }
    
    // After
    function MyInteraction(handle: Interaction) {
      handle.on(handle.target, { ... })
    }

    This change affects all custom interactions created with defineInteraction().

Don't miss a new remix release

NewReleases is sending notifications on new releases.