26 lines
681 B
JavaScript
26 lines
681 B
JavaScript
// Module ID: 1480
|
|
// Function ID: 17183
|
|
// Name: context
|
|
// Dependencies: [31]
|
|
// Exports: default
|
|
|
|
// Module 1480 (context)
|
|
import importAllResult from "result";
|
|
|
|
let context = importAllResult.createContext({
|
|
scheduleUpdate(arg0) {
|
|
const error = new Error("Couldn't find a schedule context.");
|
|
throw error;
|
|
},
|
|
flushUpdates() {
|
|
const error = new Error("Couldn't find a schedule context.");
|
|
throw error;
|
|
}
|
|
});
|
|
|
|
export default function useScheduleUpdate(arg0) {
|
|
context = importAllResult.useContext(context);
|
|
context.scheduleUpdate(arg0);
|
|
const effect = importAllResult.useEffect(context.flushUpdates);
|
|
};
|
|
export const ScheduleUpdateContext = context;
|