Skip to content

useContext hook instead of current FnContext prop-drilling #167

Open
@lefnire

Description

@lefnire

I'm currently passing FnContext, which includes the user, userId, handleReq/Res, etc. It's wildly unruly. I should use the SST Hooks system to create a useContext hook to be called in where necessary. We should also consider any other helpers from the SST clients to reduce existing boilerplate code.

The Hooks system doesn't have good documentation, so we'll need to look at their code to see how it's used. It should be easy, just no docs is all.

Metadata

Metadata

Assignees

Labels

good first issueGood place for new devs to starthelp wantedExtra attention is needed🛠StabilityAnything stability-related, usually around server/GPU setup

Type

No type

Projects

Status

ASAP

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions