mirror of
https://github.com/prymitive/karma
synced 2026-05-07 03:26:52 +00:00
fix(ui): enable observer batching in mobx
https://github.com/mobxjs/mobx-react-lite/#observer-batching
This commit is contained in:
@@ -8,6 +8,8 @@ import {
|
||||
|
||||
import createPercyAddon from "@percy-io/percy-storybook";
|
||||
|
||||
import "mobx-react-lite/batchingForReactDom";
|
||||
|
||||
import { advanceTo } from "jest-date-mock";
|
||||
|
||||
import { ThemeContext } from "Components/Theme";
|
||||
|
||||
@@ -9,6 +9,8 @@ import ReactDOM from "react-dom";
|
||||
|
||||
import Moment from "react-moment";
|
||||
|
||||
import "mobx-react-lite/batchingForReactDom";
|
||||
|
||||
import {
|
||||
SettingsElement,
|
||||
SetupSentry,
|
||||
|
||||
@@ -3,6 +3,8 @@ import Adapter from "enzyme-adapter-react-16";
|
||||
|
||||
import { FetchRetryConfig } from "Common/Fetch";
|
||||
|
||||
import "mobx-react-lite/batchingForReactDom";
|
||||
|
||||
// https://github.com/airbnb/enzyme
|
||||
Enzyme.configure({ adapter: new Adapter() });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user