Skip to content

Conversation

IMB11
Copy link
Member

@IMB11 IMB11 commented Sep 22, 2025

Considerations:

  • Do we want to abstract around useAsyncData, or plainly just provide an abstract wrapper around ofetch, $fetch and fetch? If we did the latter we'd get something like this on the nuxt frontend;
const { data: exampleData } = useAsyncData(async () => await apiClient.module.doSomething())

Rather than

const { data: exampleData } = await apiClient.module.doSomething();

It might be cleaner to just provide the abstract wrapper around ofetch etc.


PR is very rough vibecoded draft until we figure out the best structure for this.

@IMB11 IMB11 requested a review from Prospector September 22, 2025 16:27
@IMB11 IMB11 added enhancement New feature or request app Relates to Modrinth App frontend DevEx Improvements to developer experience labels Sep 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app Relates to Modrinth App DevEx Improvements to developer experience enhancement New feature or request frontend
Development

Successfully merging this pull request may close these issues.

1 participant