← Portfolio

RTK Query LoaderOpen

NPM Package | 2022

Writing and maintaining an NPM package for the first time

Although not my first time publishing a package to npm, this is the first time that I have written a package that gets active use (18+ ⭐️), and has been maintained for over a year now - with lots of bug fixes, feature releases and documentation writing.

The documentation page for RTK Query Loader has over 25 pages worth of content, including a quick guide, examples, reference types and individual pages explaining various features.

I have made sure to write extensive tests to ensure that the package works as expected.

Developing this open source package has taught me a lot about typescript generics, writing good documentation and designing a well thought out developer experience for consumers of the package.

About the package

rtk-query-loader is a package that lets you create reusable and extendable loaders for your React components.

A brief overview

RTK Query Loader is a package that lets you write reusable and composable loaders for your React components.

A loader contains queries that should successfully fulfill before render a consumer (typically a component). The loader also contains a loading state and error state to render when appropriate.

Some features include:

And even if you don't use RTK Query...