Skip to content

New class on every request? #13

@wojtekgalaj

Description

@wojtekgalaj

Hi,

So, I had a few beers and my vision is a bit blurry. I am looking at this example and I can't figure out how instantiating a new pocketbase client on every request is not a bad idea.

Would you be so kind as to shed some light on this? Everything else clicks in a very satisfying way, just this bit...

event.locals.pb = new PocketBase('http://localhost:8090');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions