Skip to main content

Module: Laika

Laika is the place where most of the magic happens. All the operations are routed through its Apollo Link, and Laika can decide what happens to them along the way. By default every connection is passed through and no additional action is taken.

If you're using createGlobalLaikaLink, an instance of Laika is by default installed as laika property on the global object (most likely window), accessible as window.laika or simply as laika.

Key functionality:

  • laika.intercept():

    If you use jest, you can think of laika like the jest global, where the equivalent of jest.fn() is laika.intercept()

  • laika.log

    The other thing laika is responsible for is logging.

    Logging functionality is behind a separate API available under laika.log.

Classes