Mixins / foldkit-mixins/theme/runtime

themeChanges

function · packages/mixins/src/theme/runtime.ts:84

function themeChanges<Name extends string>(
  themes: ThemeNames<Name>,
  key?: string,
): Stream.Stream<Name>

The theme another tab chose, each time it does: what its chooseTheme kept under key, with a name no theme has, a removed key and anything else read as the initial theme, as themeScript reads it. For a Subscription whose Message the application's update stores and answers with applyTheme: this tab's Model owns the chosen name, so the stream applies nothing itself.