Skip to content

Bowriverstudio/frontity-wp-storybook

Repository files navigation

Frontity Wordpress Storybook POC

Download the repository.

Getting Started

Storybook

npm install
npm run storybook

Frontity

cd frontity
npm install
npm run dev

Storybook current issues

Pagination Component

I get the error: Uncaught TypeError: state.source.get is not a function

These two lines fail in storybook. The workarounds I found are hacks and not real soutions.

const { next, previous } = state.source.get(state.router.link);

// Pre-fetch the the next page if it hasn't been fetched yet.
useEffect(() => {
  if (next) actions.source.fetch(next);
}, []);

Post

This is not working in storybook.

const Html2React = libraries.html2react.Component;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages