Update integrating with a framework to show SDK initialized only once
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 51
- Forks
- 105
- Avg merge
- 10h 35m
- Merged PRs (30d)
- 17
Description
https://openfga.dev/docs/getting-started/framework
https://github.com/openfga/openfga.dev/blob/main/docs/content/getting-started/framework.mdx#L326-L330
https://github.com/openfga/openfga.dev/blob/main/docs/content/getting-started/framework.mdx#L481-L486
These show the Client being re-initialized at every request which goes against our recommendations.
We should initialize the client only once and re-use it
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open docs/content/getting-started/framework.mdx and inspect the two cited sections at lines 326-330 and 481-486. Update the framework examples so the Client is initialized once and reused rather than recreated on every request. Confirm both examples still clearly show the recommended integration pattern.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 65/100