Fix useBackgroundTask hook
This commit is contained in:
parent
c57598fb09
commit
25e7ca8aa7
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
import BackgroundTasksContext from "@saleor/containers/BackgroundTasks/context";
|
||||
import { useContext } from "react";
|
||||
|
||||
const useBackgroundTask = useContext(BackgroundTasksContext);
|
||||
function useBackgroundTask() {
|
||||
return useContext(BackgroundTasksContext);
|
||||
}
|
||||
|
||||
export default useBackgroundTask;
|
||||
|
|
Loading…
Reference in a new issue