Skip to content

Commit

Permalink
0.0.880
Browse files Browse the repository at this point in the history
  • Loading branch information
bahrus committed Feb 1, 2025
1 parent f7c96cf commit 422959c
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
10 changes: 8 additions & 2 deletions froop/O.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,21 @@ export class O extends HTMLElement {
}
async #instantiateRoundaboutIfApplicable() {
const config = this.#config;
const { actions, compacts, infractions, handlers, positractions } = config;
const { actions, compacts, infractions, handlers, positractions, isSleepless } = config;
if ((actions || compacts || infractions || handlers || positractions) !== undefined) {
let mountObservers;
if (!isSleepless) {
const { guid } = await import('mount-observer/MountObserver.js');
mountObservers = this[guid];
}
const { roundabout } = await import('./roundabout.js');
const [vm, ra] = await roundabout({
vm: this,
actions,
compacts,
handlers,
positractions
positractions,
mountObservers
}, infractions);
this.#roundabout = ra;
}
Expand Down
11 changes: 9 additions & 2 deletions froop/O.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {RoundaboutReady, BaseProps, PropInfo, PropInfoTypes, PropLookup, OConfig
export {OConfig} from '../ts-refs/trans-render/froop/types.js';
import {assignGingerly} from '../lib/assignGingerly.js';
import { RoundAbout } from './roundabout.js';
import { MountObserver } from '../../mount-observer/MountObserver.js';
const publicPrivateStore = Symbol();

export class O<TProps=any, TActions=TProps> extends HTMLElement implements RoundaboutReady{
Expand Down Expand Up @@ -113,15 +114,21 @@ export class O<TProps=any, TActions=TProps> extends HTMLElement implements Round
async #instantiateRoundaboutIfApplicable(){

const config = this.#config;
const {actions, compacts, infractions, handlers, positractions} = config;
const {actions, compacts, infractions, handlers, positractions, isSleepless} = config;
if((actions || compacts || infractions || handlers || positractions) !== undefined){
let mountObservers: Set<MountObserver> | undefined;
if(!isSleepless){
const {guid} = await import('mount-observer/MountObserver.js');
mountObservers = (<any>this)[guid];
}
const {roundabout} = await import('./roundabout.js');
const [vm, ra] = await roundabout({
vm: this,
actions,
compacts,
handlers,
positractions
positractions,
mountObservers
}, infractions);
this.#roundabout = ra;
}
Expand Down
2 changes: 1 addition & 1 deletion ts-refs
Submodule ts-refs updated from 3cbcb8 to 23321f

0 comments on commit 422959c

Please sign in to comment.