Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
*onLoad(): SagaIterator {
//
}
*home(): SagaIterator {
//
}
*pushHistory(url: string): SagaIterator {
yield* this.setHistory(url);
}
*test(): SagaIterator {
yield* this.setState({name: "voco"});
}
}
export const {Controller, View} = register(new ActionHandler("home", initialState), Component);
name: "string",
};
class ActionHandler extends Model {
*about(): SagaIterator {
//
}
*onInitialized(): SagaIterator {
yield* this.setState({});
}
*test(): SagaIterator {
yield* this.setState({name: "voco"});
}
}
export const {Controller, View} = register(new ActionHandler("about", initialState), Component);
};
class ActionHandler extends Model {
*resume(): SagaIterator {
//
}
*onInitialized(): SagaIterator {
yield* this.setState({});
}
*test(): SagaIterator {
yield* this.setState({name: "voco"});
}
}
export const {Controller, View} = register(new ActionHandler("resume", initialState), Component);
};
class ActionHandler extends Model {
*footer(): SagaIterator {
//
}
*onInitialized(): SagaIterator {
yield* this.setState({});
}
*test(): SagaIterator {
yield* this.setState({name: "voco"});
}
}
export const {Controller, View} = register(new ActionHandler("footer", initialState), Component);
class ActionHandler extends Model {
@Lifecycle()
@Loading()
*onLoad(): SagaIterator {
yield delay(2000, {});
}
*onInitialized(): SagaIterator {
yield* this.setState({});
}
*test(): SagaIterator {
yield* this.setState({name: "voco"});
}
}
export const {Controller, View} = register(new ActionHandler("main", initialState), Component);
//
}
*onInitialized(): SagaIterator {
yield* this.setState({});
}
*pushHistoryByNav(url: string): SagaIterator {
yield* this.setHistory(url);
}
*test(): SagaIterator {
yield* this.setState({name: "voco"});
}
}
export const {Controller, View} = register(new ActionHandler("header", initialState), Component);