Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | 3x | import { applySignal } from '@tao.js/routing-core';
/** @typedef {import('@tao.js/routing-core').SignalTarget} SignalTarget */
/** @typedef {import('@tao.js/routing-core').RouteSignal} RouteSignal */
/**
* Server-friendly entry: apply a route signal to a Kernel (RSC / route handlers).
*
* @param {SignalTarget} kernel - the Kernel (or any `setCtx`/`setAppCtx`
* target) to signal
* @param {RouteSignal | null | undefined} signal
* @returns {boolean} whether a context was set
*/
export function enterRoute(kernel, signal) {
return applySignal(kernel, signal);
}
|