This commit replaces the use of `.indexOf` with `.includes` for cases
where the method is used to check if an array contains a particular
element. This results in improved code readability and better adherence
to modern JavaScript best practices.
The replaced code snippets include:
- `.indexOf(...) === -1`
- `.indexOf(...) !== -1`
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
This pull request removes the experimental text for the next.js app dir from the file. With the release of Next.js 13.4, the next/app directory is now considered stable, so there is no longer a need for this experimental text.
The example talks about a projects API that returns data in the form of
```
{ data: [...], nextCursor: 3}
```
In the example though the data returned from the API is referred to
as having a `projects` entry.
This commit uses the correct entry from the sample API.
Co-authored-by: Manuel Ernst <manuel.ernst@inovex.de>
* setting up pr workflow for dte
* fixing yml syntax error
* fixing more pr workflow errors
* fixing more pr workflow errors
* removing coverage upload step from agents
* starting the ci run
* making the test:build cacheable
* setting matrix down to 4 total agents
* rm NX_VERBOSE_LOGGING env var in workflow files
* rm option to skip nx cache
* testing with parallel option of 1
* adding affected base option
* busting cache
* adding root package.json as dep
* adding parallel=2 option and busting cache
* default parallel option and busting cache
* rm debris from cache-busting for time tests
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* fix(useQueries): check error boundary before retry to prevent infinite refetch
useQuery correctly handles checks on error boundary before retry. This work will change useQueries to match behavior.
Fixes#4644
* style: fix formatting
---------
Co-authored-by: Hancock, Matthew <Matthew_Hancock@comcast.com>
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* removing docs from default inputs
* fixing caching so touching md files does not invlaidate the cache
* rerun ci
* rerun ci
---------
Co-authored-by: Dominik Dorfmeister <office@dorfmeister.cc>
* perf(useQueries): optimize findMatchingObservers fn in queriesObserver for large datasets
* optimize finding unmatchedObservers in queriesObserver
---------
Co-authored-by: aemad01 <ahmedeamd199824@gmail.com>