Fetching tags globally every 30 seconds, rather than for each usage of Tags.

This commit is contained in:
Roland 2023-04-05 14:48:13 -06:00
parent e9f820d483
commit 7a855b57cc
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
8 changed files with 30 additions and 41 deletions

View file

@ -42,7 +42,7 @@ import _ from 'lodash';
import {FileBrowser} from "./FileBrowser";
import {refreshDirectoryFiles, refreshFiles} from "../api";
import {useSubscribeEventName} from "../Events";
import {TagsContext, TagsDropdown, TagsProvider} from "../Tags";
import {TagsDropdown} from "../Tags";
function EbookCard({file}) {
const {s} = useContext(ThemeContext);
@ -347,9 +347,7 @@ export function FilesView({
{selectButton}
{viewButton}
{limitDropdown}
<TagsProvider>
<TagsFilesGroupDropdown/>
</TagsProvider>
<TagsFilesGroupDropdown/>
{filterOptions && filtersDropdown}
</Grid.Column>
{menuColumns}