Remix Gen

screenshot of Remix Gen

A utility for Remix's loader/action based on async generator.

Overview

remix-gen is a utility for Remix's loader/action based on async generator. It provides a convenient way to handle sessions and cookies in a Remix application.

Features

  • actions.appendHeader({ name, value }): Add a header to the response.
  • actions.setSessionData({ commitSession, session, name, value }): Set session data.
  • actions.setSessionFlashData({ commitSession, session, name, value }): Set flash session data.
  • actions.getSessionFlashData({ commitSession, session, name }): Get flash session data.

Summary

remix-gen is a utility that provides additional functionality for Remix's loader/action. It offers features such as adding headers to the response, setting and getting session data, and handling flash session data. It is not a requirement for using Remix, but it can be helpful in managing sessions and cookies.