Skip to content

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

Closed

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()

Activity

  1. moved this to 📋 Triaged in Lit Project Boardon Oct 24, 2022
  2. Repository owner moved this from 📋 Triaged to ✅ Done in Lit Project Boardon Nov 5, 2022
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

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions