How to use the @reactorx/core.composeEpics function in @reactorx/core

To help you get started, we’ve selected a few @reactorx/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github querycap / reactorx / @reactorx / request / src / __tests__ / index.spec.tsx View on Github external
status: StatusOK,
          statusText: "OK",
          data: {
            "100": "https://assets-cdn.github.com/images/icons/emoji/unicode/1f4af.png?v8",
          },
          headers: {},
          config,
        });
      }, 500);
    });
  };

  const store$ = Store.create({});

  store$.epicOn(
    composeEpics(
      createCombineDuplicatedRequestEpic(),
      createRequestEpic({
        baseURL: "https://api.github.com",
        adapter: mock,
      }),
    ),
  );

  function useEmoijs() {
    const [emoijs, updateEmoijs] = useState({});

    const [request] = useRequest(getEmojis);

    useEffect(() => {
      request(undefined, {
        onSuccess: ({ arg }) => {