Skip to content

Rename useAppConfig to getAppConfig to avoid linter complaints/ai confusion #1911

Description

@MiguelsPizza

Feature Request

useAppConfig is interpreted as a react hook by linters and AI. This really confuses AI as well as they will avoid using it outside of react components

Activity

  1. mmikhan commented on Feb 17, 2026

    @mmikhan

    @aklinker1 can we rename the useAppConfig() to something else, please? i.e.: getAppConfig.

    Linter indeed throws warning for this.

  2. kachkaev commented on Feb 17, 2026

    @kachkaev
    Contributor

    @mmikhan, akliner1 is quite busy (#920 (comment)), but feel free to submit a PR. I guess useAppConfig should be still exported and deprecated for backwards compatibility.

  3. aklinker1 commented on Feb 19, 2026

    @aklinker1
    Member

    feel free to submit a PR. I guess useAppConfig should be still exported and deprecated for backwards compatibility.

    Yes, please open a PR. Introduce the new function name but keep the old one. Don't mark it as deprecated yet, I only introduce deprecations on breaking changes.

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