Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(js): Com 145 introduce novunextjs #6647

Merged
merged 11 commits into from
Oct 15, 2024
Merged

Conversation

BiswaViraj
Copy link
Member

What changed? Why was the change needed?

  • created the @novu/nextjs package
  • added next router as a default router push

Screenshots

Expand for optional sections

Related enterprise PR

Special notes for your reviewer

Copy link

linear bot commented Oct 8, 2024

@BiswaViraj BiswaViraj force-pushed the com-145-introduce-novunextjs branch from a1158e3 to 6720dae Compare October 8, 2024 08:35
@BiswaViraj BiswaViraj changed the title Com 145 introduce novunextjs feat(js): Com 145 introduce novunextjs Oct 8, 2024
Copy link

pkg-pr-new bot commented Oct 8, 2024

Open in Stackblitz

novu

pnpm add https://pkg.pr.new/novuhq/novu@6647

@novu/client

pnpm add https://pkg.pr.new/novuhq/novu/@novu/client@6647

@novu/framework

pnpm add https://pkg.pr.new/novuhq/novu/@novu/framework@6647

@novu/headless

pnpm add https://pkg.pr.new/novuhq/novu/@novu/headless@6647

@novu/nest

pnpm add https://pkg.pr.new/novuhq/novu/@novu/nest@6647

@novu/js

pnpm add https://pkg.pr.new/novuhq/novu/@novu/js@6647

@novu/nextjs

pnpm add https://pkg.pr.new/novuhq/novu/@novu/nextjs@6647

@novu/node

pnpm add https://pkg.pr.new/novuhq/novu/@novu/node@6647

@novu/notification-center

pnpm add https://pkg.pr.new/novuhq/novu/@novu/notification-center@6647

@novu/providers

pnpm add https://pkg.pr.new/novuhq/novu/@novu/providers@6647

@novu/react

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react@6647

@novu/shared

pnpm add https://pkg.pr.new/novuhq/novu/@novu/shared@6647

@novu/react-native

pnpm add https://pkg.pr.new/novuhq/novu/@novu/react-native@6647

@novu/stateless

pnpm add https://pkg.pr.new/novuhq/novu/@novu/stateless@6647

commit: 322ed4e

Copy link

netlify bot commented Oct 8, 2024

Deploy Preview for novu-stg-vite-dashboard-poc ready!

Name Link
🔨 Latest commit 322ed4e
🔍 Latest deploy log https://app.netlify.com/sites/novu-stg-vite-dashboard-poc/deploys/670e4e5cd9be420008c5b8a2
😎 Deploy Preview https://deploy-preview-6647--novu-stg-vite-dashboard-poc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

export const Inbox = React.memo((props: InboxProps) => {
const router = useRouter();

return <RInbox routerPush={router.push} {...props} />;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@@ -0,0 +1,38 @@
'use client';

import {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we export from @novu/react in a single file?

Copy link
Member Author

@BiswaViraj BiswaViraj Oct 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is we need to export everything from @novu/react except the Inbox
I tried few methods like

import * as NovuReact from'@novu/react
const {Inbox, ...rest} = NovuReact;
export {rest}

and other similar ways, they didn't worked :/

}
```

## Use your own backend and socket URL
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this to the last example. The others are more important.

@BiswaViraj BiswaViraj merged commit 26f433a into next Oct 15, 2024
38 of 40 checks passed
@BiswaViraj BiswaViraj deleted the com-145-introduce-novunextjs branch October 15, 2024 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants