2.0.2 • Published 4 years ago

@ontola/link-devtools v2.0.2

Weekly downloads
179
License
GPL-3.0-or-later
Repository
github
Last release
4 years ago

link-devtools

Browser console debugging features for Link-Redux projects.

Installation

Get the React devtools

First install the react devtools if you haven't got them already.

Chrome

Firefox

Installation and Usage

yarn add @ontola/link-devtools V npm i @ontola/link-devtools

Add the following to the place where your LinkedRenderStore is initialized;

import { createStore } from 'link-redux';
import enableDevtools from '@ontola/link-devtools'

// Wherever
const lrs = createStore();
enableDevtools(lrs);

The dev object should now be present when loading your app.

dev.help // Will output the available commands

If dev is undefined, please check that the react devtools are in fact installed and enabled in your current browser session.

Note: These methods are convenience methods, please do not use or depend on them in your code!

dev.help

Try calling dev.help to see all available commands.

dev.obj(iri: string | number | NamedNode)

The dev.obj() function can take an URL as a string or NamedNode and will show the data currently in the store.

dev.data

Select a LinkedResourceContainer in the React devtools and call dev.data in the browser console.

dev.reload

When selecting a LinkedResourceContainer, call dev.reload to force link to reload the resource from the server.

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.2.0-1

4 years ago

1.2.0-0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago