mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-19 06:46:15 +01:00
13 lines
556 B
JavaScript
13 lines
556 B
JavaScript
import { onDestroy } from "../skeleton/index.js";
|
|
|
|
// https://github.com/ReactiveX/rxjs/issues/4416#issuecomment-620847759
|
|
const rxjsModule = await import("./vendor/rxjs.min.js");
|
|
const ajaxModule = await import("./vendor/rxjs-ajax.min.js")
|
|
|
|
export default rxjsModule;
|
|
export { textContent, htmlContent, setAttribute, getAttribute, removeAttribute } from "./dom.js";
|
|
export const ajax = ajaxModule.ajax;
|
|
export function effect(obs) {
|
|
const tmp = obs.subscribe(() => {}, (err) => console.error("effect", err));
|
|
onDestroy(() => tmp.unsubscribe());
|
|
}
|