Error codesState

A shared() scope was renamed

MARKLESS_SHARED_SCOPE_RENAMEDerrorMarkless raises it while it builds your .tsrx files.

The message

MARKLESS_SHARED_SCOPE_RENAMED: shared() scope "<from>" is now "<to>".
The shared() scopes are app, container, and subtree. "page" and "request" became "app", and "widget" became "subtree", with the same behaviour. The old names no longer compile, so no build keeps a scope by accident.
Write `{ scope: "<to>" }`. "app" is the default, so an app-wide shared() can also drop the option.
https://markless.dev/errors/MARKLESS_SHARED_SCOPE_RENAMED

Words in angle brackets change from case to case.

Why

The scopes are now 'app', 'container', and 'subtree'. 'page' and 'request' became 'app', and 'widget' became 'subtree'. Each new name works exactly like the old one.

Fix

Write the new name. 'app' is the default, so you can also leave the option out.

Before

import { shared, state } from '@markless/core';export const menu = shared(() => state({ open: false }), { scope: 'widget' });

After

export const menu = shared(() => state({ open: false }), { scope: 'subtree' });
Where Markless raises it

All error codes