createComputed method
Creates its scope-local LxReactive instance.
Implementation
@override
LxAsyncComputed<T> createComputed(LevitRef ref, String ownerPath) {
return LxAsyncComputed<T>(
() => _AutoLinkScope.runCaptured(
() => _builder(ref),
(captured, _) {
for (final reactive in captured) {
ref.autoDispose(reactive);
}
},
ownerId: ownerPath,
),
name: 'LevitState($ownerPath)',
);
}