Skip to content
This repository has been archived by the owner on Apr 7, 2023. It is now read-only.

Commit

Permalink
fix: deprecated effector/fork import (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: randomnerd <>
  • Loading branch information
randomnerd authored Oct 14, 2021
1 parent 62ab982 commit 370bab6
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export default {
],
external: [
"next/app",
"effector/fork",
"effector-react/ssr",
...Object.keys(Object.assign({}, pkg.dependencies, pkg.peerDependencies)),
],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/render-page-with-scope.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import { Provider } from "effector-react/ssr";
import { Scope } from "effector/fork";
import { Scope } from "effector";

import { AppType, AppProps, Enhancer, RenderPage } from "../types";

Expand Down
3 changes: 1 addition & 2 deletions src/with-fork.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import * as React from "react";
import NextDocument, { DocumentContext, DocumentProps } from "next/document";
import { fork, serialize, allSettled } from "effector/fork";
import { fork, serialize, allSettled, Store } from "effector";
import cookies from "next-cookies";
import { Store } from "effector";

import { domain } from "./domain";
import { PageContext } from "./types";
Expand Down
2 changes: 1 addition & 1 deletion src/with-hydrate.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from "react";
import NextApp, { AppContext, AppProps } from "next/app";
import { hydrate } from "effector/fork";
import { hydrate } from "effector";

import { domain } from "./domain";
import { INITIAL_STATE_KEY } from "./lib";
Expand Down

0 comments on commit 370bab6

Please sign in to comment.