Skip to content

Repository files navigation

The Stripes Connect module

Copyright (C) 2016-2026 The Open Library Foundation

This software is distributed under the terms of the Apache License, Version 2.0. See the file "LICENSE" for more information.

Deprecation

This module is deprecated. As of 2026, API queries should use react-query. For example:

import { useQuery } from 'react-query';
import { useNamespace, useOkapiKy } from '@folio/stripes/core';

const useSomeQuery = () => {
  const ky = useOkapiKy();
  const [namespace] = useNamespace({ key: 'some-unique-key' });

  const { data, isLoading, isError } = useQuery(
    [namespace],
    () => ky.get('/some/resource').json(),
  );

  return { data, isLoading, isError };
};

Introduction

Stripes Connect provides essentially one service: the ability to upgrade a regular React component into a Connected Component. This is done by importing the connect() method from stripes-connect, defining a data manifest, and exporting not the React component itself but the result of wrapping it in a call to connect():

import { Component } from 'react';
import { connect } from 'stripes-connect';
class MyStripesComponent extends Component {
  static manifest = { 'resourceName': { params: values } };
  // ...
}
export default connect(MyStripesComponent, 'moduleName');

Documentation

Additional information

See stripes-core.

See project STCON at the FOLIO issue tracker.

Other FOLIO Developer documentation is at dev.folio.org

About

Declarative REST data access for React components, part of the FOLIO project

Resources

Contributing

Stars

1 star

Watchers

15 watching

Forks

Releases

Packages

Used by

Contributors

Languages