Questions tagged [remix.run]
For questions regarding programming with the Remix web framework.
remix.run
538
questions
0
votes
0
answers
7
views
Server loader state renders briefly, even with clientLoader.hydrate set to true
I have followed the guide for Client Data in the Remix Docs to implement client-side filtering for a list of products. However, even though I have set clientLoader.hydrate to true, the site renders ...
0
votes
0
answers
14
views
Remix - Parent loader throwing 500 and nested loader returning a redirect
Today I bumped into an unexpected behaviour from Remix and I'd like to understand if I'm missing something.
I have a loader in routes/main/loader.ts and another loader in routes/main._index/loader.ts.
...
0
votes
0
answers
10
views
Why is my scss module file is removed after hmr in remix application after changing tsx file?
I'm new to remix and I'm trying to get css modules working, it looks like the css is removed from the html after a hot reload
I seem to have a pretty basic setup for my application and at the initial ...
0
votes
0
answers
16
views
Folder routes cannot be found in remix
I have a following route folder structure in my remix project
- routes/
- example/
- index.tsx
- add.tsx
- edit.$id.tsx
- delete.$id.tsx
I am able to see index.tsx in the browser. But when I ...
0
votes
1
answer
34
views
Remix load route within route, like a reusable component
I am quite new to Remix and probably do not have the whole concept grasped correctly.
What I am trying to achieve is the following:
I want an endpoint which be displayed on /apicheck, this needs to ...
-1
votes
0
answers
11
views
How to refresh JWT using Apollo GraphQL in Remix (SSR)
Has anyone figured out how to refresh a JWT using Remix and Apollo Client?
I've been trying (and failing) to refresh a JWT using Apollo Client and Remix. I've seen a number of solutions, and none of ...
-1
votes
0
answers
10
views
Throwing an error from Apollo setContext and catching in onError
I'm trying to throw an error from within a setContext call and have that error caught by the onError link within Apollo. The problem is that it seems onError is never triggered when the error is ...
-1
votes
1
answer
28
views
Error: The pattern `api/email.js` defined in functions doesn't match any Serverless Functions inside the `api` directory (Vercel/Remix-run)
email.js serverless function generated by chatgpt in my root/api/email.js directory:
//[root]/api/email.js
//just a test function generated by chatgpt
import sendEmail from "../utils/email";
...
-1
votes
0
answers
25
views
Unable to Resolve "virtual:entry-sw " Error in Remix-PWA Setup with Esbuild
I see this when trying to run pnpm dev
🏗️ Building Service Worker in development mode...
💿 Built Service Worker in: 43.157ms
👀 Watching for changes in the service worker file...
✘ [ERROR] Could not ...
-2
votes
0
answers
25
views
Sync discount codes in two Shopify stores
I currently manage two separate Shopify stores and I'm looking for a way to sync the discount codes between them. My goal is to ensure that whenever a discount code is created or updated in one store, ...
0
votes
2
answers
165
views
How to pass a JsonifyObject<T> returned from Remix's useLoaderData<typeof loader> to a function
From the Remix 2.9.2 route code below, I get the TypeScript error...
Argument of type 'JsonifyObject<IdAndDate>' is not assignable to parameter of type 'IdAndDate'.
...and I can't figure out ...
0
votes
0
answers
10
views
React-cosmos with remix-js framework
Do any one knows how to make react cosmos render tailwind styles in remix js framework ?
if yes give me steps please
i am trying to render react components in remix js framework and and i have ...
0
votes
1
answer
40
views
Remix run: Authentication succeeds on validation failures
I am trying to validate the login information. If the login fields are empty or have wrong information, I should be able to return the user back to login with an error displayed beneath fields. ...
0
votes
0
answers
17
views
CSRF token for Mayan EDMS REST API using Axios
we installed Mayan EDMS via docker compose to use it for a variety of files in our Remix webapp.
At the moment the problem is that we cant get the authentication token via post request (or, we can't ...
-1
votes
0
answers
22
views
Error boundary not working due to loader in root
In root.tsx I have this error boundary
export function ErrorBoundary() {
const error = useRouteError();
console.error(error);
return (
<html>
<head>
<title>Oh ...