Readjusted code to not use localstorage, and just used redux for indicator

This commit is contained in:
Eshwar Tangirala
2025-05-22 20:10:52 -04:00
parent 0199a36238
commit 7b33717333
4 changed files with 18 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
import { createAppAsyncThunk } from "app/async-thunk"
import { client } from "app/client"
import { redirectToCategory, redirectToFeed } from "app/redirect/thunks"
import { incrementUnreadCount } from "app/tree/slice"
import { incrementUnreadCount, setHasNewEntries } from "app/tree/slice"
import type { CollapseRequest, Subscription } from "app/types"
import { flattenCategoryTree, visitCategoryTree } from "app/utils"
@@ -11,7 +11,6 @@ export const collapseTreeCategory = createAppAsyncThunk(
"tree/category/collapse",
async (req: CollapseRequest) => await client.category.collapse(req).then(r => r.data)
)
export const selectNextUnreadTreeItem = createAppAsyncThunk(
"tree/selectNextUnreadItem",
(
@@ -75,6 +74,7 @@ export const newFeedEntriesDiscovered = createAppAsyncThunk(
amount,
})
)
thunkApi.dispatch(setHasNewEntries({ feedId, value: true }))
}
}
)