Mihovil Ilakovac
Mihovil Ilakovac
Some users when installing deps e.g. `react-hot-toast` receive this error: ``` npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: rrtest@undefined...
For users to get benefits of type auto-complete in their IDE, we should properly type the `options` param of our `useQuery` helper: https://github.com/wasp-lang/wasp/blob/73e55326bd9f427bd3e390f97ca86be776ab2b02/waspc/data/Generator/templates/sdk/wasp/client/operations/hooks.ts#L18 Also, `useQuery`'s type says that the payload...
This replaces build-time env validation `validate-env.mjs` script (removed in #2362) with a simple Vite plugin. It removes the `dotenv` dep requirement and uses the same Zod schema that the runtime...
Caveats: - users will need to be careful not to cause circular imports. Ideally they use a file only for env schemas e.g. `env.ts` - user will need to use...
Sometimes users will need to customise the server build process e.g. while setting up Sentry, it offered me to upload source maps for better error reporting. Example Rollup config for...
We want to make sure that there not TS errors in the built server app (e.g. our TODO app example) by running `npx tsc`. Right now, we have some TS...
When we sanitize provider data, before saving it, we make sure to hash the password. The function that does that looks smth like this: ```ts function sanitize(data: { hashedPassword: string...
Users deploying Wasp apps sometimes get stuck and they report it on our Discord. Some of the common themes: - env variables are missing - CORS is not working as...
Quote from [here](https://hackernoon.com/boosting-react-app-performance-a-guide-to-lazy-loading-and-suspense): > Lazy loading is a strategy that defers the loading of non-essential resources until they are needed, reducing the initial loading time and improving the overall performance...
We have now: - `REACT_APP_API_URL` (client), defines the API url on the client. It uses a legacy prefix from the React Create App days. We should probably go for a...