You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure this is an issue, but the callbacks are not working as I would expect them to.
Here's what I would expect:
after : called after Instafeed.run() regardless of success or failure
before: called at the beginning of Instafeed.run()
success : called after Instafeed.run() only if successful
error : called after Instafeed.run() only if error
With Instafeed v2.0.0-rc2 an invalid access_token calls the error() callback function, but not the after() function. Instead it throws an 400 error, which should be handled by the callback, right?
Please let me know if I'm misunderstanding something here.
The text was updated successfully, but these errors were encountered:
Looks like the docs are misleading here. The after function (in both v1 and v2) is only called after the images have successfully been inserted into the page. If any failure is hit during the process, the error callback will be called instead.
Sorry about that, the v2 documentation is still a work-in-progress and needs some work. We'll get this fixed!
I'm not sure this is an issue, but the callbacks are not working as I would expect them to.
Here's what I would expect:
With
Instafeed v2.0.0-rc2
an invalid access_token calls theerror()
callback function, but not theafter()
function. Instead it throws an 400 error, which should be handled by the callback, right?Please let me know if I'm misunderstanding something here.
The text was updated successfully, but these errors were encountered: