https://github.com/single-spa/lifecyles-compat
Compatibility layer for single-spa applications that use old lifecyle methods
https://github.com/single-spa/lifecyles-compat
Last synced: 11 months ago
JSON representation
Compatibility layer for single-spa applications that use old lifecyle methods
- Host: GitHub
- URL: https://github.com/single-spa/lifecyles-compat
- Owner: single-spa
- License: mit
- Created: 2025-08-17T08:19:37.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-08-17T09:30:15.000Z (11 months ago)
- Last Synced: 2025-08-17T11:23:22.784Z (11 months ago)
- Language: TypeScript
- Size: 110 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# lifecyles-compat
Compatibility layer for single-spa applications that use old lifecyle methods.
## Installation
```sh
npm i -S @single-spa/lifecycles-compat
pnpm i -S @single-spa/lifecycles-compat
```
## Usage
```js
import singleSpaReact from "single-spa-react";
import singleSpaLifeyclesCompat from "@single-spa/lifecycles-compat";
// Old versions of single-spa framework adapters used bootstrap lifecycle rather than init
const lifecycles = singleSpaReact({});
export const { init, mount, unmount, update } =
singleSpaLifeyclesCompat(lifecycles);
```