I’m working on a Remix app that uses Discourse as the back end for its comment system. It was going great until I got to the question of how to handle large amounts of paginated data. This post documents the process of figuring that out. Scroll to the bottom to see the answer. The rest of what’s documented here is probably only of interest to me.
Category: Web Development
Hello Redis
Redis an in-memory database – it saves data to a server’s memory instead of writing it to disk. I don’t know much more about it (yet), but being able to read and write data without a lot of overhead might solve a problem I’ve run into. The problem I’m learning about Redis now because the… Continue reading Hello Redis
Adding a Comment Form Component
I’m working on a couple of apps that need a comment form – the popular text editors seem overly complex. They’re also mostly intended to be rendered on the client. I’m trying to avoid that. I’m going to try making an editor based on a textarea input. I might end up using it. I’m sure I’ll learn something…
Defining Discourse Data Types
After learning how to authenticate users on a Remix app with Discourse, I couldn’t resist trying to display Discourse topics in the app.
DiscourseConnect Authentication for Remix
This is a proof of concept. It might lead to something interesting.
Understanding State Management in Remix Applications
This post was partly inspired by ChatGPT’s insistence on recommending approaches to state management that the Remix docs suggest are often an anti-pattern. I think I learned something…
Authentication: fetcher.Form login form
I started to run into trouble with state management in the registration form. The form checks the email and password fields to see if the supplied values are available. It also disabled the “Register” button until the email, username, and password fields have passed some validation checks.
Authentication (for real this time?)
Testing a couple of approaches to authentication on my local development site.
Authentication (part one)
Somehow adding user authentication to the site turned into a two day deep-dive into Remix and React: components, composition, declarative UI. Learned a lot, nothing about authentication though.
More House Cleaning
Making the site easier to use on small screens.