React code splitting (#2603)

* Code split using react lazy
* Split locales
* Move to lodash-es
* Import individual icons
This commit is contained in:
WithoutPants
2022-06-22 14:41:31 +10:00
committed by GitHub
parent 33b68b4464
commit 3b4b20e9b2
147 changed files with 969 additions and 610 deletions

View File

@@ -1,6 +1,6 @@
import React, { useState } from "react";
import { useIntl } from "react-intl";
import _ from "lodash";
import cloneDeep from "lodash-es/cloneDeep";
import { useHistory } from "react-router-dom";
import Mousetrap from "mousetrap";
import {
@@ -67,7 +67,7 @@ export const StudioList: React.FC<IStudioList> = ({
const { count } = result.data.findStudios;
const index = Math.floor(Math.random() * count);
const filterCopy = _.cloneDeep(filter);
const filterCopy = cloneDeep(filter);
filterCopy.itemsPerPage = 1;
filterCopy.currentPage = index + 1;
const singleResult = await queryFindStudios(filterCopy);