mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 12:09:51 +02:00
perf: reactive updates
This commit is contained in:
1 parent
222b690fba
commit
ff4a87e5b8
3 files changed
+48
-47
No files matched your search
@@ -16,7 +16,7 @@ export function Page({
|
||||
locale,
|
||||
skeleton,
|
||||
}: Props & MaybeSkeletonComponentProps) {
|
||||
const list = Playlist.use((state) => state.list);
|
||||
const generated = Playlist.use((state) => state.list !== undefined);
|
||||
const wargaming = App.use((state) => state.logins.wargaming);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -30,8 +30,8 @@ export function Page({
|
||||
return (
|
||||
<LocaleProvider locale={locale}>
|
||||
<PageWrapper color="tomato" direction="row" maxWidth="unset" p="0">
|
||||
{!list && <PlaylistGenerator />}
|
||||
{list && <PlaylistOrder />}
|
||||
{!generated && <PlaylistGenerator />}
|
||||
{generated && <PlaylistOrder />}
|
||||
</PageWrapper>
|
||||
</LocaleProvider>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user