-
-
Notifications
You must be signed in to change notification settings - Fork 241
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
Cleanup #256
Comments
Also another question, because I don't know JS that well. Does this code in dataController.js change the value of let { input, query, data } = ctx;
query = query ? query(input.value) : input.value; Should it be const { input, query, data } = ctx;
if (data.cache && data.store) return;
const queryVal = query ? query(input.value) : input.value; I don't code in JS that much so I'm not always sure which values are passed by reference and by value. I could have googled this before asking, but it was easier to just mention it :-) |
There's 3 places in the code where you do |
Obviously start.js would have to change |
Answering your first question, the Your second question, if we applied the proposed change this means that you won't be able to catch the data fetching errors through the |
Thanks for that, I've updated them all in |
Ah I didn't see that :-) Thank you. |
No problem here, I am just puzzled by it:
In step 2,
ctx.feedback
is set todata.src
, and then in step 3,ctx.feedback
is set toctx.feedback = { query, matches, results }
.In between those, I can not see that
ctx.feedback
is read anywhere?Can this line in dataController.js
be changed to
Or what am I not seeing?
The text was updated successfully, but these errors were encountered: