Function: createFrameworkAgnosticReactiveEngine()
August 8, 2026 ยท View on GitHub
@plures/praxis / index / createFrameworkAgnosticReactiveEngine
Function: createFrameworkAgnosticReactiveEngine()
createFrameworkAgnosticReactiveEngine<
TContext>(options):FrameworkAgnosticReactiveEngine<TContext>
Defined in: packages/praxis-core/src/reactive-engine.ts:317
Create a new reactive logic engine instance.
Type Parameters
TContext
TContext extends object
Parameters
options
FrameworkAgnosticReactiveEngineOptions<TContext>
Configuration options for the reactive engine
Returns
FrameworkAgnosticReactiveEngine<TContext>
A new ReactiveLogicEngine instance
Example
const engine = createReactiveEngine({
initialContext: { count: 0 },
initialFacts: [],
initialMeta: {}
});
// Subscribe to changes
engine.subscribe((state) => {
console.log('State changed:', state);
});
// Mutate state (will trigger subscribers)
engine.apply((state) => {
state.context.count++;
});