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

docs: updated next js docs to include app router example #268

Merged
merged 2 commits into from
Mar 5, 2024

Conversation

jagadeeshgade008
Copy link
Contributor

@@ -149,7 +149,29 @@ See documentation about `bucketBy` property in feature definitions for further e

## App Router

We do not have documentation for Featurevisor SDK usage with Next.js App Router yet. If you are interested in contributing, please reach out to us on [GitHub](https://github.com/featurevisor/featurevisor).
If your using app router, you can use like this
Copy link
Member

Choose a reason for hiding this comment

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

We can change it to something like this:

"If you are using App Router, you can do something like this:"

// src/app/approuter/page.tsx
import { getInstance } from "../../featurevisor";

export default function Home() {
Copy link
Member

Choose a reason for hiding this comment

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

@jagadeeshgade008
Copy link
Contributor Author

jagadeeshgade008 commented Feb 29, 2024

@fahad19

  • changed the Home component to an async component
  • modified description

@fahad19 fahad19 merged commit a34f69f into featurevisor:main Mar 5, 2024
1 check passed
fahad19 added a commit that referenced this pull request Mar 10, 2024
* main:
  docs: Fastify integration (#270)
  docs: add Roku SDK documentation (#272)
  docs: fix code block
  v1.11.0
  feat: revisioning info moved to its own file (#274)
  v1.10.1
  fix: init command (#277)
  v1.10.0
  feat: allow showing only failed specs in test runner (#276)
  v1.9.0
  feat: allow printing datafile per environment (#275)
  docs: updated next js docs to include app router example (#268)
  v1.8.0
  feat: allow option to test by generating datafiles early (#267)
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.

None yet

2 participants