-
Notifications
You must be signed in to change notification settings - Fork 8
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
Support for dynamic URL #3
Comments
Thanks @ajaleelp and yes you are right, as of now we do not support changing the url on a success or a failure event. May I know more about your use case here so that I can think about implementing this if it's a use-case that everyone needs? |
I was trying to implement a psuedo-live feed by polling for a resource with id above the latest I have. Got it working with a |
@ajaleelp Would you like to give this a try. Implementing dynamic url behaviour. |
Hey @ajaleelp, apologies for the delay. The last couple of months have been really hectic in terms of work. Please try it and let me know if it fixes your issue. Here is the sandbox link which will demonstrate an example which is similar to your requirements https://codesandbox.io/s/react-polling-custom-promise-dynamic-url-3z7h2?file=/src/App.js |
@vivek12345 Thank you for taking the time and getting this done 🙂 Unfortunately, it's been a while since I touched the project where I was using this. Will let you know if I ever get back to it. Cheers! |
Thanks for the handy component @vivek12345 👍
I was wondering if there is anyway to modify the url on each poll - say
/resource/1
,/resource/2
etc. From what I could gather, this is not possible as of now?The text was updated successfully, but these errors were encountered: