Presentations
Templates
Features
Teams
Pricing
Log in
Sign up
Log in
Sign up
Menu
Embracing anxiety
What Anxious does
Combines API requests
Fetches in an optimized way
Ensures no one query hogs all resources
Combining requests
Each "resource" exports a type and a way to fetch
Consumers call that resource with extra context
Understanding how resolve works is key
Fetching in an optimized way
By default, queries use the fields optimization
Anxious defaults to smaller record-sets (10 elements)
Since anxious is in the same local-network as the API's, it can fetch faster and slim the response
Fetching Limitations
Each query is only allowed a maximum of 10 concurrent requests to limit flooding
We explicitly don't allow "fetch-all" or plop-type behaviors
Computed properties
are
allowed with some limitations on complexity.
How does it work?
Some PRO tips
Remove fields if you don't use them!
Try and combine as much into one query as possible
Use apollo's client for caching and more client-side
You can use features like directives for more expressive queries (@if)
Embracing anxiety
By Joel Griffith
Made with Slides.com
Embracing anxiety
726
Joel Griffith
More from
Joel Griffith