Twitter | Search | |
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’»
Exploring the world through code, travel, and music ✨ Open Source Engineer
1,586
Tweets
318
Following
5,649
Followers
Tweets
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» retweeted
ReactFest 3h
Excited to welcome , an open-source engineer who besides building tools for at the team is constantly sharing her knowledge with the community πŸ€— πŸ€— 🎑 join to hear Peggy's talk at:
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» retweeted
Zach Silveira Jan 19
Adding into a normal express api is too perfect. Added a resolvers folder and the /graphql route into express. Now I can slowly move things over to graphql as I add new features. Perfect way to move a large app!
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 19
Can't wait for it to come out!! 😍
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» retweeted
Eve Porcello Jan 19
So excited to announce that and I are writing a book for ! πŸ’•πŸŽ‰
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» retweeted
GrΓ©goire Vda Jan 19
Announcing reason-apollo: together with to reach heaven
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 19
Replying to @captainsafia
Just made the switch two days ago, I'm loving it so far! 😍 The migration process was easier than I expected too.
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @logantpowell
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» retweeted
ReasonConf 2018 Jan 18
πŸ“’ We're excited to announce world's first Reason conference in Vienna, Austria There is a highly enthusiastic community all around the world. Now it is time to bring them together... to innovate, to learn and have fun πŸ™ŒπŸŽ‰ See you on the 11th - 13th of May 2018!
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
YES PLEASE πŸ™ the slack version of screenhero is so laggy
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
hahaha caching is rowdy indeed. totally using this tweet for my section where i explain the apollo cache in my agent conf talk also, can't wait to see what you come up with! i'm sure it's going to be dope πŸ‘
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» retweeted
JavaScript Kanye Jan 18
Full disclosure, writing a simple 95% use case graphql client. Wasn't too hard until caching. Turns out caching is real fuckin rowdy. Both Relay and Apollo have done some breathtaking shit to make this work.
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Yay that sounds awesome!! Excited to meet you :)
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» retweeted
Nicolas Jan 18
CSS-in-JS benchmarks in your browser on your device. Which libraries are almost as fast as vanilla CSS? Which are slower than inline styles? Find out!
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @ken_wheeler @hswolff
If you're generating an id on the server, it's good practice to return that id from your mutation so the client knows how to cache it.
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @ken_wheeler @hswolff
Apollo adds the __typename for all results from the server unless you specify addTypename: false to the cache constructor.
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @ken_wheeler @hswolff
On the server, you'd type the response of the mutation as a Todo. On the client, you'd have to add the __typename manually (once we have a client-side schema, you'll no longer have to do this).
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @ken_wheeler @hswolff
Writing to the root_query object kinda bypasses this (how state link works). You shouldn't need to include an update function unless whatever you're updating depends on data that's already in the cache (like appending a todo to a list). 2/2
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @ken_wheeler @hswolff
Yes and no. You'll see that some of the nested selection sets like User & Repository aren't pulled out into their own nodes since they don't have ids (the default dataIdFromObject returns null). 1/2
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @ken_wheeler @hswolff
that return that entry will be updated automatically (you can see this in the gif on the next slide). Hoping to have a better slide explaining this for my AgentConf talk next week :) (2/2)
Reply Retweet Like
Peggy Rayzis πŸ‘©πŸΌβ€πŸ’» Jan 18
Replying to @ken_wheeler @hswolff
I need to make a better slide about this πŸ˜› For the feed query, each entry is pulled out into its own node in the cache (with __typename + id). If I make a change to that entry (like adding a comment), all of the queries (1/2)
Reply Retweet Like