Helpers: Decorators

Decorators for Apollo Elements. Used internally to reflect properties from controllers to their elements. Normally you shouldn’t need to import these directly.

import { controlled } from '@apollo-elements/core/decorators';

class ControlledData<D, V = VariablesOf<D>> extends LitElement {
  controller = new ApolloQueryController<D, V>(this);

  @controlled()
  @state()
  data: Data<D> | null = null;
}

Exports

js getInitialProps from decorators.js

js getInitialProp from decorators.js

js setInitialProps from decorators.js

js setInitialProp from decorators.js

js controlled from decorators.js