@fullcalendar/react
Advanced tools
Comparing version 6.0.3 to 6.0.4
@@ -8,2 +8,3 @@ import { Component } from 'react'; | ||
export default class FullCalendar extends Component<CalendarOptions, CalendarState> { | ||
static act: (f: () => void) => void; | ||
private elRef; | ||
@@ -10,0 +11,0 @@ private calendar; |
/* eslint-disable @typescript-eslint/no-explicit-any */ | ||
import React, { Component, createRef } from 'react'; | ||
import { createPortal } from 'react-dom'; | ||
import { act } from 'react-dom/test-utils'; | ||
import { Calendar, } from '@fullcalendar/core'; | ||
@@ -44,3 +43,3 @@ import { CustomRenderingStore, } from '@fullcalendar/core/internal'; | ||
this.customRenderingRequestId = requestAnimationFrame(() => { | ||
act(() => { | ||
FullCalendar.act(() => { | ||
this.doCustomRendering(customRenderingMap); | ||
@@ -79,2 +78,3 @@ }); | ||
} | ||
FullCalendar.act = (f) => { f(); }; | ||
// Utils | ||
@@ -81,0 +81,0 @@ function computeUpdates(origObj, newObj) { |
{ | ||
"name": "@fullcalendar/react", | ||
"version": "6.0.3", | ||
"version": "6.0.4", | ||
"title": "FullCalendar React Component", | ||
@@ -5,0 +5,0 @@ "description": "The official React Component for FullCalendar", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
22242
321