Closed ttizze closed 1 month ago
The changes in this pull request involve significant updates to various components and files within the web application. Key modifications include the removal of useTypedLoaderData
in favor of useLoaderData
, simplifications in loader functions to return plain objects, and the introduction of a new constant streamTimeout
for server request handling. Additionally, several dependencies in package.json
have been updated to their latest versions, and the vite.config.ts
file has been adjusted to include new interface declarations for the Remix plugin configuration.
File Path | Change Summary |
---|---|
web/app/entry.server.tsx |
Removed ABORT_DELAY , added export const streamTimeout = 5000 , updated timeout in request handling. |
web/app/root.tsx |
Replaced typedjson with data in the loader function, updated destructuring in components. |
web/app/routes/$userName+/edit/route.tsx |
Replaced useTypedLoaderData with useLoaderData , simplified loader return type. |
web/app/routes/$userName+/page+/$slug+/components/translateButton/TargetLanguageSelector.tsx |
Removed role="combobox" from Button in PopoverTrigger . |
web/app/routes/$userName+/page+/$slug+/edit/_edit.tsx |
Replaced useTypedLoaderData with useLoaderData , simplified loader return type. |
web/app/routes/$userName+/page+/$slug+/index.tsx |
Replaced useTypedLoaderData with useLoaderData , updated meta function and loader return type. |
web/app/routes/_index/index.tsx |
Replaced useTypedLoaderData with useLoaderData , simplified data retrieval in Index component. |
web/app/routes/search/route.tsx |
Removed typedjson , simplified loader to return a plain object containing currentUser . |
web/app/routes/translator/components/TranslationInputForm.tsx |
Replaced useTypedActionData with useActionData , updated imports. |
web/app/routes/translator/route.tsx |
Replaced typedjson with useLoaderData , simplified loader and action function signatures. |
web/package.json |
Updated various dependency versions, including @aws-sdk/client-s3 and typescript . |
web/vite.config.ts |
Added Future interface to @remix-run/server-runtime , updated future object in Remix plugin configuration. |
EditPage
component regarding tag handling, which may relate to data retrieval and management changes in this PR.🐰 In the code we hop and play,
WithuseLoaderData
leading the way.
Old imports we’ve left behind,
New constants and updates, oh so refined!
Dependencies fresh, our code's in bloom,
Hopping forward, making room! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
Release Notes
New Features
useTypedLoaderData
withuseLoaderData
.Bug Fixes
role="combobox"
attribute from theTargetLanguageSelector
component.Chores
vite.config.ts
to support new features in the Remix plugin.These changes improve the overall user experience and application performance.