openfga.dev icon indicating copy to clipboard operation
openfga.dev copied to clipboard

Update integrating with a framework to show SDK initialized only once

Open rhamzeh opened this issue 1 year ago • 0 comments

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

rhamzeh avatar Feb 20 '24 23:02 rhamzeh