-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[React Native] Can't find variable: __dirname #137
Comments
The |
@quietshu I can help take a look on this one :) |
I am facing a similar issue but when importing it from I am expecting this library to serve the most recent cached api response and when online it revalidates and bring the recent response. Does is it work this way or I am missing something. Thanks again @n3tr . |
@mohmdalfaha doesn't it return a cached data when device is offine? 🤔 I only use I will help take a look when I have time. My idea is just creating custom fetch hook, observing |
The current cache structure needs some refactoring to support async cache mechanisms. And after that, we will be able to support custom cache APIs like AsyncStorage. |
@quietshu I really liked the amazing hook you built, Although I am wondering if it supports offline mode, I have tried it with offline mode but it did not work |
I simply added
then error occurred Can't find variable: __dirname
__dirname
is on compiled dist code, but React Native doesn't support_dirname
.The text was updated successfully, but these errors were encountered: