danielr18 / connected-next-router

A Redux binding for Next.js Router compatible with Next.js.
MIT License
109 stars 30 forks source link

Support for Next 13/React 18? #100

Closed zargold closed 1 year ago

zargold commented 1 year ago

Does this work with React 18, Next 13 maybe with the app directory?

danielr18 commented 1 year ago

@zargold There's no support for app directory yet.

I released connected-next-router@5.0.0-rc.1 today, which supports Next 13, React 18, and next-redux-wrapper 8. https://github.com/danielr18/connected-next-router/pull/102

felschr commented 1 year ago

5.0.0-rc.1 contains @types/react-redux in the normal dependencies, which might cause conflicts since react-redux@8.0.0 now comes with its own types.

I'm actually not sure how it ended up there, since I can't find it in the package.json of the source, but this from my local node_modules/connectec-next-router/package.json:

  "dependencies": {
    "@types/react-redux": "^7.1.27"
  }

Update: It does seem to prefer the types from react-redux, in my editor at least. Still, this package shouldn't be in dependencies, but at least it doesn't seem to break anything.

danielr18 commented 1 year ago

Good catch @felschr, thanks! It probably got there by one of the Snyk PRs. I'll take care of it before releasing the new version.

felschr commented 1 year ago

You're probably aware already, but Next.js 14 has also recently been released.

danielr18 commented 1 year ago

Version 5 has been released