Skip to content

[Due for payment 2025-07-01] Add an ESLint warning that Onyx.connect() is deprecated #64588

Description

@tgolen

Background

We have identified that Onyx.connect() is an anti-pattern and will be deprecated. The project to refactor and clean up those patterns has not begun yet and is slated to begin in early July.

Problem

Contributors continue to add new references to Onyx.connect() which adds more anti-patterns to our code, which will cause more work later to refactor.

Solution

Create an ESLint custom rule that will throw a WARNING for Onyx.connect() references. The warning message should direct developers on what to use instead.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions