fix: client timeline load disconnect issue
This commit is contained in:
parent
904944f5d3
commit
4b7808e70b
1 changed files with 7 additions and 1 deletions
|
@ -878,7 +878,7 @@ media_theme_pref();
|
||||||
})();
|
})();
|
||||||
|
|
||||||
// ui ns
|
// ui ns
|
||||||
(() => {
|
(async () => {
|
||||||
const self = reg_ns("ui");
|
const self = reg_ns("ui");
|
||||||
window.SETTING_SET_FUNCTIONS = [];
|
window.SETTING_SET_FUNCTIONS = [];
|
||||||
|
|
||||||
|
@ -1151,6 +1151,12 @@ ${option.input_element_type === "textarea" ? `${option.value}</textarea>` : ""}
|
||||||
});
|
});
|
||||||
|
|
||||||
// intersection observer infinite scrolling
|
// intersection observer infinite scrolling
|
||||||
|
const obs = (await ns("ui")).IO_DATA_OBSERVER;
|
||||||
|
if (obs) {
|
||||||
|
console.log("get lost old observer");
|
||||||
|
obs.disconnect();
|
||||||
|
}
|
||||||
|
|
||||||
self.IO_DATA_OBSERVER = new IntersectionObserver(
|
self.IO_DATA_OBSERVER = new IntersectionObserver(
|
||||||
async (entries) => {
|
async (entries) => {
|
||||||
for (const entry of entries) {
|
for (const entry of entries) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue