svrcekmichal / redux-axios-middleware

Redux middleware for fetching data with axios HTTP client
MIT License
922 stars 96 forks source link

Uncaught TypeError: (0 , _reduxAxiosMiddleware.isAxiosRequest) is not a function #63

Open itsazzad opened 6 years ago

itsazzad commented 6 years ago

isAxiosRequest works with import { isAxiosRequest } from 'redux-axios-middleware/lib/defaults'; Neither working with import { isAxiosRequest } from 'redux-axios-middleware/src/defaults';. Nor with import { isAxiosRequest } from 'redux-axios-middleware/dist/bundle'; Also tried with import axiosMiddleware from 'redux-axios-middleware'; and then axiosMiddleware.isAxiosRequest(action)

lib directory is ignored in git. src directory is ignored in npm.

How to use isAxiosRequest? Failing with isAxiosRequest(action)

Tried version 4.0.0, 3.1.1 and 3.0 May be I am missing something basic!

svrcekmichal commented 6 years ago

Why do you want to use isAxiosRequest outside of middleware?

nmaves commented 6 years ago

This is an internal function and we are not exporting it for public use. Is this really something you need outside of this library?

What is your use case?