<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Omid Nikrah on Medium]]></title>
        <description><![CDATA[Stories by Omid Nikrah on Medium]]></description>
        <link>https://medium.com/@omidnikrah?source=rss-27ca36003c5a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6XkSzCGjETZrHdZA-XBkjQ.jpeg</url>
            <title>Stories by Omid Nikrah on Medium</title>
            <link>https://medium.com/@omidnikrah?source=rss-27ca36003c5a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 17 Jun 2026 05:58:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@omidnikrah/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com" rel="hub"/>
        <item>
            <title><![CDATA[Stop using Redux, cache requests]]></title>
            <link>https://blog.devgenius.io/stop-using-redux-cache-requests-e932d845cb99?source=rss-27ca36003c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/e932d845cb99</guid>
            <category><![CDATA[redux]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Omid Nikrah]]></dc:creator>
            <pubDate>Sun, 12 Jul 2020 22:10:25 GMT</pubDate>
            <atom:updated>2020-07-13T11:48:56.444Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, I don’t want to talk about the new state management library or compare Redux with Context API. I just want to say, in some situations, you don’t need to Redux and you can handle it by other solutions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q7W2r1yFhhCJN37t" /><figcaption>Photo by <a href="https://unsplash.com/@john_matychuk?utm_source=medium&amp;utm_medium=referral">John Matychuk</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Imagine we have a PWA and it’s an online shop. Usually, we navigate between products and check them. When you like a product, you may check it many times and it has a bad experience if every time you should wait for getting product data from the server. We have two solutions to have a better experience.</p><p><strong>One. Using Redux (Not recommended)</strong></p><p>We can use Redux and have a state to push the product data in this state. But when you have developed a large scale application, It’s not a good solution.</p><p><strong>Two. Cache Requests (Recommended)</strong></p><p>CACHE REQUESTS. Why using Redux until you can cache requests?</p><p>We can have cache storage to store the requests data and when an API request called, first we looking for the response in the cache storage, and if we don’t have it, now we need to call the API request.</p><p>We have many ways to implement this feature and I will show you some of them.</p><ul><li>You can implement it as the following:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0debdc70ad55b4dfafe24c5ec4f7bcf3/href">https://medium.com/media/0debdc70ad55b4dfafe24c5ec4f7bcf3/href</a></iframe><p>Or if you are using <a href="https://www.npmjs.com/package/axios">axios</a>, you can also use <a href="https://www.npmjs.com/package/axios-extensions">axios-extensions</a> or <a href="https://www.npmjs.com/package/axios-cache-adapter">axios-cache-adaptor</a> packages.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FTfKfqjt2i4GIM%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FTfKfqjt2i4GIM%2Fgiphy.gif&amp;image=https%3A%2F%2Fi.giphy.com%2Fmedia%2FTfKfqjt2i4GIM%2Fgiphy-downsized-large.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="435" frameborder="0" scrolling="no"><a href="https://medium.com/media/4cf509f4421e0ec5656a0f3f01e71f93/href">https://medium.com/media/4cf509f4421e0ec5656a0f3f01e71f93/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e932d845cb99" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/stop-using-redux-cache-requests-e932d845cb99">Stop using Redux, cache requests</a> was originally published in <a href="https://blog.devgenius.io">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Autofill OTP code in iOS]]></title>
            <link>https://blog.devgenius.io/autofill-otp-code-in-ios-9d10ad382240?source=rss-27ca36003c5a------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d10ad382240</guid>
            <category><![CDATA[ios]]></category>
            <category><![CDATA[post]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[front-end-development]]></category>
            <category><![CDATA[autofill]]></category>
            <dc:creator><![CDATA[Omid Nikrah]]></dc:creator>
            <pubDate>Sat, 13 Jun 2020 20:15:42 GMT</pubDate>
            <atom:updated>2020-06-16T08:15:11.368Z</atom:updated>
            <content:encoded><![CDATA[<p>HTML elements have many attributes that we don’t use them and maybe we don’t know all of them at all :). One of the useful attributes in form inputs is auto-complete=&quot;<em>one-time-code”.</em></p><p>In most websites, Users can log in using the OTP code. When you receive the OTP code, it’s so boring to leave the browser and go to the messages and see the OTP code.</p><p>Now, I want to tell you a way to show the OTP code in the iOS keyboard like the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/442/1*IcDIp8nmksUkfFfRL3H9fQ.png" /></figure><p><strong>How to implement this feature?</strong></p><p>First of all, you should set <em>auto-complete=”one-time-code” </em>on your input like the following:</p><pre>&lt;input type=&quot;tel&quot; name=&quot;otp-code&quot; auto-complete=&quot;one-time-code&quot; /&gt;</pre><p>Now, it’s time to update your SMS message. You should have &quot;code” word in your SMS message.</p><p>For example: Code: 123456 is your verification code</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d10ad382240" width="1" height="1" alt=""><hr><p><a href="https://blog.devgenius.io/autofill-otp-code-in-ios-9d10ad382240">Autofill OTP code in iOS</a> was originally published in <a href="https://blog.devgenius.io">Dev Genius</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>