jedmund / hensei-web

A tool to help Granblue Fantasy players create and share teams and strategies.
https://app.granblue.team
2 stars 0 forks source link

Implement API transformers #342

Closed jedmund closed 1 year ago

jedmund commented 1 year ago

This is a backend project that aims to help us reduce the number of state-related bugs in the app by dramatically reducing and simplifying data structures.

Right now, we handle data as we get it with very little centralization and type checking. Even though the keys in objects are typed, it's still hard to know what the source of truth is.

By transforming data out of API responses into objects and then using those objects consistently in state, we hope to reduce the complexity of working in various components and managing state.

jedmund commented 1 year ago

We're going to use something like zod or TanStack Query instead.