Skip to content

[DevEx]: refactor gameStore.requestGameState() to use makeSocketRequest() helper #1229

@itsalaidbacklife

Description

@itsalaidbacklife

Improvement Summary

We should refactor the requestGameState() method of the game store to use the general helper makeSocketRequest() to make its request

Detailed Description

This would be more consistent with how requests are made throughout the rest of the game store. As of #1228, this is the approach used by requestSpectate() while still allowing the game view to re-authenticate the user if the request errors with a 401.

I attempted to refactor the requestGameState accordingly here but it failed CI.

We should revisit this to clean up this function and make it consistent with the game store, fixing whatever issue caused the 3 test failures as of the implementation in the above commit

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev experienceImprovements to the code base that make it easier/better/more enjoyable to contribute to CuttlefrontendRequires changes to the frontend (vue) clientgood first issueGood for newcomersversion-patchAn update that warrants a bumping the project's patch version (e.g. 4.0.0 => 4.0.1)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions