Open gregfenton opened 4 years ago
I agree, it's hard to tell how or why those two code samples should work any differently considering they have the same params with similar values. Also at first glance, it's easy to miss the difference in positioning (assuming that matters at all).
I think in the second instance, the orderByValue param should be omitted.
// COULD CAUSE UNEXPECTED BEHAVIOR!!! Values passed to limitToFirst and startAt will remain as strings (i.e not parsed)
queryParams: [`limitToFirst=${limitToFirst}`, `startAt=${startAt}`],
Yeah, the example was to show that order does in fact matter, agreed that it isn't that clear
Yeah, the example was to show that order does in fact matter, agreed that it isn't that clear
@prescottprue what happens if you don't pass the orderByValue param at all? Is limitToFirst and startAt parsed or they remain as strings?
On the queries page, section PARSING, the first code example:
it isn't obvious how/why these two code samples differ. Also, the fact that the prop and the variables are the same name makes it doubly less obvious what is going on here or why these two lines would behave any differently (other than the order of the array entries).