<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: aom19</title>
    <description>The latest articles on DEV Community by aom19 (@aom19).</description>
    <link>https://dev.to/aom19</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F279518%2F6e5df5d1-b09c-4c09-8270-ab7b79e8201b.jpg</url>
      <title>DEV Community: aom19</title>
      <link>https://dev.to/aom19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/aom19"/>
    <language>en</language>
    <item>
      <title>Manage Local State with Apollo V3</title>
      <dc:creator>aom19</dc:creator>
      <pubDate>Sat, 15 Jan 2022 11:05:45 +0000</pubDate>
      <link>https://dev.to/aom19/manage-locale-state-with-apollo-v3-1d9o</link>
      <guid>https://dev.to/aom19/manage-locale-state-with-apollo-v3-1d9o</guid>
      <description>&lt;p&gt;Howdy everyone, In this article,I will show how I removed redux from my project and managed state with Apollo Version .&lt;/p&gt;

&lt;p&gt;I will try to show u just the difference  between *&lt;em&gt;redux vs apollo *&lt;/em&gt;, for design check the first post.&lt;/p&gt;

&lt;p&gt;For the project with state managed with Redux check my previous post.&lt;br&gt;
&lt;em&gt;link here:&lt;/em&gt; &lt;a href="https://dev.to/aom19/new-project-3afh"&gt;https://dev.to/aom19/new-project-3afh&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Project Repository: &lt;a href="https://github.com/aom19/rentCar/tree/main/apollo-version"&gt;https://github.com/aom19/rentCar/tree/main/apollo-version&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Apollo Version 3
&lt;/h2&gt;

&lt;p&gt;Apollo Client is a comprehensive state management library for JavaScript that enables you to manage both local and remote data with GraphQL. Use it to fetch, cache, and modify application data, all while automatically updating your UI.&lt;/p&gt;

&lt;h2&gt;
  
  
  Project Structure
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1i6yld5r1yv7n8xrdans.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1i6yld5r1yv7n8xrdans.png" alt="Project Structure" width="219" height="329"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Frontend
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqapmb2vump6kaxtdhp7p.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqapmb2vump6kaxtdhp7p.png" alt="Frontend Structure" width="226" height="448"&gt;&lt;/a&gt;&lt;br&gt;
 1.Setup&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb21nxd15imnnf5l7o0lk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb21nxd15imnnf5l7o0lk.png" alt="Install Apollo" width="800" height="66"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2.Initialize ApolloClient&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvm8c75igowivcepamiz5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvm8c75igowivcepamiz5.png" alt="Initialize ApolloClient" width="539" height="594"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;3.Create Mutations and Queries&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp19sehmi9c4r9ref7yjb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp19sehmi9c4r9ref7yjb.png" alt="Mutations Queries" width="223" height="198"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdpforsuctqcgtd2naz0y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdpforsuctqcgtd2naz0y.png" alt="Mutations" width="461" height="667"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Import &lt;em&gt;useQuery &amp;amp; useMutation&lt;/em&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdnzs5e1a1xd13uugpqzp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fdnzs5e1a1xd13uugpqzp.png" alt="Import" width="454" height="26"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5.Simplest way to use a Mutation. &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fppm5zwmqm8uw0wb2bsqm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fppm5zwmqm8uw0wb2bsqm.png" alt="use a Mutation" width="555" height="87"&gt;&lt;/a&gt;&lt;br&gt;
 but this type of mutation won't provide immediately changes on the screen , it will just store that car booked. &lt;br&gt;
 for this one, I start update the cache directly rewriting this .&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9axd2y62kmvmfg3004fo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9axd2y62kmvmfg3004fo.png" alt="Update cache" width="537" height="349"&gt;&lt;/a&gt;&lt;/p&gt;

</description>
      <category>react</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>programming</category>
    </item>
    <item>
      <title>Car booking ( React-Redux)</title>
      <dc:creator>aom19</dc:creator>
      <pubDate>Tue, 14 Dec 2021 19:31:44 +0000</pubDate>
      <link>https://dev.to/aom19/new-project-3afh</link>
      <guid>https://dev.to/aom19/new-project-3afh</guid>
      <description>&lt;p&gt;Last week I found an old repository from a university project on GitHub, and I decided to give this 'little boy ' a new aspect. &lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb84c04aou490yq2xtds1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb84c04aou490yq2xtds1.png" alt="Image description" width="800" height="524"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  I started by adding:
&lt;/h2&gt;

&lt;p&gt;Home page:&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvj3i76bs3ykf454xiyn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flvj3i76bs3ykf454xiyn.png" alt="Image description" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Contact page:&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2s158awf7k1czi7eoht2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2s158awf7k1czi7eoht2.png" alt="Image description" width="800" height="462"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;About page:&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6icppwwdl71llbyt8u73.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6icppwwdl71llbyt8u73.png" alt="Image description" width="800" height="463"&gt;&lt;/a&gt;&lt;br&gt;
 manage state with Redux:&lt;br&gt;
&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbil9ydhvnci71iswwg4q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbil9ydhvnci71iswwg4q.png" alt="Image description" width="658" height="530"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For more  check :&lt;br&gt;
old project: &lt;a href="https://github.com/aom19/ProjectBD"&gt;https://github.com/aom19/ProjectBD&lt;/a&gt;&lt;br&gt;
new one: &lt;a href="https://github.com/aom19/rentCar"&gt;https://github.com/aom19/rentCar&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next step: Remove Redux and manage state with Apollo Client 🤛 🤓&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>react</category>
      <category>career</category>
      <category>design</category>
    </item>
  </channel>
</rss>
