Skip to content
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

Add pre-fetch function to ajax module #1335

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

Antonio-Maranhao
Copy link
Contributor

Overview

Allows setting a 'pre-fetch' function that is executed before every network request
made by the app/core/ajax.js module. It can be used to run actions before
fetch() is invoked by Fauxton, even allowing one to modify
the original fetch() parameters.

Testing recommendations

Unit tests provided to validate the new function.
Application behavior hasn't changed as the default pre-fetch function is a no-op.

Checklist

  • Code is written and works correctly;
  • Changes are covered by tests;
  • Documentation reflects the changes;
  • Update rebar.config.script with the correct tag once a new Fauxton release is made

The pre-fetch function is executed before every network request
made by the ajax module. It can be used to run actions before
fetch() is invoked by Fauxton, even allowing one to  modify
the original fetch() parameters.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants