@remix-run/interaction@0.5.0
Breaking Changes📦 remixView on GitHub →
⚠ 2 breaking🔧 2 symbols
Summary
This minor release introduces a breaking change by removing the `onError` option from `createContainer` and the `raise` method from the `Interaction` interface, shifting error handling to standard DOM event propagation.
⚠️ Breaking Changes
- Removed the `onError` option from `createContainer`. Errors thrown in event listeners now dispatch an `ErrorEvent` on the target element with `bubbles: true`, allowing them to propagate up the DOM tree.
- Removed the `raise` method from the `Interaction` interface.
Migration Steps
- If you were using the `onError` option in `createContainer`, you must now listen for `ErrorEvent` on the target element.
- If you were calling the `raise` method on an `Interaction` object, replace this call with the appropriate error handling mechanism, as the method no longer exists.