Summary
In this chapter, you learned about advanced session management patterns with Remix and wrapped up your work on BeeRich.
Remix offers a createCookie
helper function for working with cookie data. The function returns a cookie abstraction for parsing and serializing cookie data to and from request headers.
After reading this chapter, you know how to use createCookie
to store and access arbitrary user session data in a cookie. You practiced working with cookies by adding a visitor cookie to the login and signup flow in BeeRich that persists the URL the visitor wants to access.
You also learned how to implement a simple pagination feature with Remix and Prisma. Pagination is a pattern that can improve performance and avoid long loading times when working with data lists. Utilizing pagination limits the amount of data that needs to be fetched for each page load.
In the next chapter, we will learn more about deploying Remix applications on the edge.