npm i
npx prisma migrate dev
npm run dev
remix-run / example-trellix Goto Github PK
View Code? Open in Web Editor NEWA partial trello board clone with Remix
Home Page: https://trellix.fly.dev
A partial trello board clone with Remix
Home Page: https://trellix.fly.dev
npm i
npx prisma migrate dev
npm run dev
Hi! In my company, we're using Remix, and we're making more or less the same approach of auth with Cookies, but haven't been able to test it correctly. We're trying to test that a loader has a cookie that an action has previously set with: redirect("/", {headers: {"Set-Cookie": "cookie=foo"}})
. The problem is that the loader doesn't receive any cookie, and it has been impossible to test it using remixStub.
Testing auth is very important for us, but ideally, we don't want to start using an e2e tool such as playwright because Vitest (+ happy-dom) is way faster, is there anything you think we might be missing or do you have any comment?
Furthermore, it would be awesome if you show us how would you to test these kinds of examples!
The EditableText component is currently experiencing an error when handling the onBlur event. The intended functionality is for the onBlur event to trigger fetcher.submit, but instead, it produces the following error message: "Uncaught Error: Cannot submit element that is not <form>, <button>, or <input type='submit|image'>
" in the console. Additionally, fetcher.submit does not trigger unless the user presses the Enter key after typing.
Observations:
<form>, <button>, or <input type='submit|image'>
.Code Snippet:
onBlur={(event) => {
if (
inputRef.current?.value !== value &&
inputRef.current?.value.trim() !== ""
) {
fetcher.submit(event.currentTarget);
}
setEdit(false);
}}
Proposed Solution:
onBlur={(event) => {
if (
inputRef.current?.value !== value &&
inputRef.current?.value.trim() !== ""
) {
fetcher.submit(event.currentTarget.parentElement as HTMLFormElement);
}
setEdit(false);
}}
Note:
I'm uncertain if the current behavior aligns with the intended use of the component. I'm still learning and would appreciate clarification on whether this behavior is intentional. If it's not can I create a PR?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.