Skip to content

[labs/context] Consider new names for context decorators #3389

@justinfagnani

Description

@justinfagnani

Should this be an RFC?

  • This is not a substantial change

Which package is this a feature request for?

Context (@lit-labs/context)

Description

The current context decorator names (@contextProvider() and @contextProvided()) are easy to confuse, differing by only one letter, and are a bit long.

I propose we simplify these to just @provide() and @consume() to be shorter and more closely match the names of the context controllers.

While those names are somewhat generic, they will be imported from the @lit-labs/context package, so the meaning should be easy enough to determine.

Alternatives and Workarounds

@provideContext() and @consumeContext()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions