chore: Remove setimmediate polyfill (#4903)
* Add setimmediate to dependencies * Remove use of setimmediate
This commit is contained in:
@@ -311,7 +311,7 @@ function DocumentExplorer({ onSubmit, onSelect, items }: Props) {
|
|||||||
if (!searchTerm) {
|
if (!searchTerm) {
|
||||||
toggleCollapse(activeNode);
|
toggleCollapse(activeNode);
|
||||||
// let the nodes re-render first and then scroll
|
// let the nodes re-render first and then scroll
|
||||||
setImmediate(() => scrollNodeIntoView(activeNode));
|
setTimeout(() => scrollNodeIntoView(activeNode), 0);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
// eslint-disable-next-line import/no-unresolved
|
// eslint-disable-next-line import/no-unresolved
|
||||||
import "vite/modulepreload-polyfill";
|
import "vite/modulepreload-polyfill";
|
||||||
import "focus-visible";
|
import "focus-visible";
|
||||||
import "setimmediate";
|
|
||||||
import { LazyMotion } from "framer-motion";
|
import { LazyMotion } from "framer-motion";
|
||||||
import { KBarProvider } from "kbar";
|
import { KBarProvider } from "kbar";
|
||||||
import { Provider } from "mobx-react";
|
import { Provider } from "mobx-react";
|
||||||
|
|||||||
@@ -53,7 +53,7 @@ class ImageUpload extends React.Component<RootStore & Props> {
|
|||||||
this.isUploading = true;
|
this.isUploading = true;
|
||||||
// allow the UI to update before converting the canvas to a Blob
|
// allow the UI to update before converting the canvas to a Blob
|
||||||
// for large images this can cause the page rendering to hang.
|
// for large images this can cause the page rendering to hang.
|
||||||
setImmediate(this.uploadImage);
|
setTimeout(this.uploadImage, 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
uploadImage = async () => {
|
uploadImage = async () => {
|
||||||
|
|||||||
@@ -128,7 +128,7 @@ export default class AuthStore {
|
|||||||
this.addPolicies(data.policies);
|
this.addPolicies(data.policies);
|
||||||
|
|
||||||
if (this.token) {
|
if (this.token) {
|
||||||
setImmediate(() => this.fetch());
|
setTimeout(() => this.fetch(), 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -147,11 +147,11 @@
|
|||||||
"nodemailer": "^6.6.1",
|
"nodemailer": "^6.6.1",
|
||||||
"outline-icons": "^1.46.0",
|
"outline-icons": "^1.46.0",
|
||||||
"oy-vey": "^0.12.0",
|
"oy-vey": "^0.12.0",
|
||||||
"patch-package": "^6.5.1",
|
|
||||||
"passport": "^0.6.0",
|
"passport": "^0.6.0",
|
||||||
"passport-google-oauth2": "^0.2.0",
|
"passport-google-oauth2": "^0.2.0",
|
||||||
"passport-oauth2": "^1.6.1",
|
"passport-oauth2": "^1.6.1",
|
||||||
"passport-slack-oauth2": "^1.1.1",
|
"passport-slack-oauth2": "^1.1.1",
|
||||||
|
"patch-package": "^6.5.1",
|
||||||
"pg": "^8.8.0",
|
"pg": "^8.8.0",
|
||||||
"pg-hstore": "^2.3.4",
|
"pg-hstore": "^2.3.4",
|
||||||
"pg-tsquery": "^8.4.0",
|
"pg-tsquery": "^8.4.0",
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ class Frame extends React.Component<PropsWithRef> {
|
|||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
this.mounted = true;
|
this.mounted = true;
|
||||||
setImmediate(this.loadIframe);
|
setTimeout(this.loadIframe, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
|
|||||||
Reference in New Issue
Block a user