Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it clear which @wasp imports are importing user-defined stuff, and which @wasp core stuff #114

Open
Martinsos opened this issue Nov 3, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Martinsos
Copy link
Member

e.g. currently import MyQuery from "@wasp/queries/MyQuery" imports user defined query, while import createNewUser from "@wasp/core/auth.js" Wasp defined function, and import useAuth from '@wasp/auth/useAuth.js' imports Wasp defined React hook.

They all look similar and it is hard for user to figure out what is Wasp defined and what is user defined! We got this feedback from a user.

We could standardize import paths in some way, so that Wasp defined stuff always starts in same fashion.

This might also become more trivial to solve (or solved inherently) once we implement inline JS and modules.

@Martinsos Martinsos added the enhancement New feature or request label Nov 3, 2020
@sodic
Copy link
Contributor

sodic commented Jul 25, 2024

The import sytnax changed, but this remains a problem.

Related: #284

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants