wasp icon indicating copy to clipboard operation
wasp copied to clipboard

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

Open Martinsos opened this issue 5 years ago • 1 comments

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 avatar Nov 03 '20 10:11 Martinsos

The import sytnax changed, but this remains a problem.

Related: https://github.com/wasp-lang/wasp/issues/284

sodic avatar Jul 25 '24 11:07 sodic