Skip to content

[DX-531] Getting started guide for NextJS#3292

Open
maratal wants to merge 1 commit intomainfrom
DX-531-nextjs-push-guide
Open

[DX-531] Getting started guide for NextJS#3292
maratal wants to merge 1 commit intomainfrom
DX-531-nextjs-push-guide

Conversation

@maratal
Copy link
Collaborator

@maratal maratal commented Mar 19, 2026

Description

Getting started guide for NextJS and React using Pub/Sub.

https://ably.atlassian.net/browse/DX-531

Checklist

@maratal maratal added the review-app Create a Heroku review app label Mar 19, 2026
@coderabbitai
Copy link

coderabbitai bot commented Mar 19, 2026

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: d30f7a63-f500-4c8a-a596-f34607f16f15

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch DX-531-nextjs-push-guide

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 19, 2026 22:04 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 20, 2026 00:32 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 20, 2026 01:53 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 16:37 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 16:53 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 16:56 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 17:50 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 21:51 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 21:55 Inactive
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 22:49 Inactive
@maratal maratal force-pushed the DX-531-nextjs-push-guide branch from cb8ca2d to 7bbf38b Compare March 22, 2026 23:10
@ably-ci ably-ci temporarily deployed to ably-docs-dx-531-nextjs-ekdsgl March 22, 2026 23:10 Inactive
@maratal maratal marked this pull request as ready for review March 23, 2026 00:27
@maratal maratal requested a review from m-hulbert March 23, 2026 00:28
@maratal maratal changed the title docs(push): add Next.js push notifications getting started guide [DX-531] Getting started guide for NextJS Mar 23, 2026
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copy link
Contributor

@splindsay-92 splindsay-92 left a comment

Choose a reason for hiding this comment

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

Before I start the review, I checked the ticket which states this is a Getting started guide for NextJS and React using Pub/Sub. Is this guide supposed to just be a NextJS with plain ably-js, is there a NextJS + React coming too? :)

@maratal
Copy link
Collaborator Author

maratal commented Mar 24, 2026

Before I start the review, I checked the ticket which states this is a Getting started guide for NextJS and React using Pub/Sub. Is this guide supposed to just be a NextJS with plain ably-js, is there a NextJS + React coming too? :)

Oops, that's where lack of experience in platforms can bite. I wasn't aware that it's possible to use ably differently with NextJS (plain and hooks) to even ask this question. And now I'm not sure whether it worth two separate guides or put second set of code blocks into the same guide or go solo on hooks variant. WDYT @m-hulbert @splindsay-92

@splindsay-92
Copy link
Contributor

splindsay-92 commented Mar 24, 2026

Before I start the review, I checked the ticket which states this is a Getting started guide for NextJS and React using Pub/Sub. Is this guide supposed to just be a NextJS with plain ably-js, is there a NextJS + React coming too? :)

Oops, that's where lack of experience in platforms can bite. I wasn't aware that it's possible to use ably differently with NextJS (plain and hooks) to even ask this question. And now I'm not sure whether it worth two separate guides or put second set of code blocks into the same guide or go solo on hooks variant. WDYT @m-hulbert @splindsay-92

No worries at all! If you checkout https://github.com/ably/ably-nextjs-fundamentals-kit, this shows best practice for using ably-js react hooks and providers with NextJS (there are some gotchas which is why we put this together) :)

My personal opinion is that a common use-case is Vercel + NextJS + React as a stack, so it would be good to either have a built example app or a guide for NextJs + React at least :)

@m-hulbert
Copy link
Contributor

I think we should have them as standalone guides rather than trying to mix languages in the getting started ones. As Steven says, React + NextJS has a few things that trip people up, so I think it would be worth updating to use hooks if you don't mind @maratal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-app Create a Heroku review app

Development

Successfully merging this pull request may close these issues.

4 participants