Should this be an RFC?
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()
Should this be an RFC?
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/contextpackage, so the meaning should be easy enough to determine.Alternatives and Workarounds
@provideContext()and@consumeContext()