<?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: Niko Montana</title>
    <description>The latest articles on DEV Community by Niko Montana (@nikomontana).</description>
    <link>https://dev.to/nikomontana</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F164278%2F61e69a96-5bd3-47d2-81b5-7e4bdc9cfdb3.jpeg</url>
      <title>DEV Community: Niko Montana</title>
      <link>https://dev.to/nikomontana</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nikomontana"/>
    <language>en</language>
    <item>
      <title>Firestore Modelling Data</title>
      <dc:creator>Niko Montana</dc:creator>
      <pubDate>Sat, 24 Aug 2019 16:54:15 +0000</pubDate>
      <link>https://dev.to/nikomontana/firestore-modelling-data-1kmo</link>
      <guid>https://dev.to/nikomontana/firestore-modelling-data-1kmo</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I want to create an instagram clone with firebase and found some limitations while working on the datastructure. &lt;/p&gt;

&lt;p&gt;As the documentation reccomends to keep the documents as small as possible and the collections big I have created this model.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;+ Profile (collection)

  |--- uid (document)

      |--- userName (String)

      |--- firstName (String)

      |--- lastName (String)

      |--- profileImgUrl (String)

      |--- userName (String)

      |--- UserPosts (collection)

         |--- uid (document)

            |--- title (String)

            |--- createdAt (timeStamp)

            |--- description (String)

            |--- imgUrl (String)

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;I have decided to go with this model because by splitting &lt;code&gt;Profile&lt;/code&gt; and &lt;code&gt;Post&lt;/code&gt; into seperate root collections I am not able to query Posts by &lt;code&gt;userName&lt;/code&gt; without a second query after I get the &lt;code&gt;uid&lt;/code&gt; of the user.&lt;/p&gt;

&lt;p&gt;My problem now is that I dont know how to write a query to get the posts of a user by &lt;code&gt;userName&lt;/code&gt;&lt;/p&gt;

</description>
      <category>firebase</category>
      <category>firestore</category>
      <category>data</category>
      <category>modelling</category>
    </item>
    <item>
      <title>Firebase Cloud Storage alternatives</title>
      <dc:creator>Niko Montana</dc:creator>
      <pubDate>Wed, 17 Jul 2019 11:33:46 +0000</pubDate>
      <link>https://dev.to/nikomontana/firebase-cloud-storage-alternatives-2heb</link>
      <guid>https://dev.to/nikomontana/firebase-cloud-storage-alternatives-2heb</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I have already worked with firebase and had created some great apps. But as I advance as a developer it feels a little bit restrictive.&lt;br&gt;
For the next project I have planned to use graphQL with heroku. I found for almost everything firebase offers an alternative - but not for storage!&lt;/p&gt;

&lt;p&gt;I mean there are thousands of solutions out there but the special thing about firebase cloud storage is to be able to have secutiry rules if wanted. &lt;/p&gt;

&lt;p&gt;Does anybody know an alternative with easy to setup security rules?&lt;/p&gt;

&lt;p&gt;Regards! &lt;/p&gt;

</description>
      <category>cloud</category>
      <category>firebase</category>
      <category>storage</category>
      <category>permission</category>
    </item>
    <item>
      <title>React UI Lib Experiences</title>
      <dc:creator>Niko Montana</dc:creator>
      <pubDate>Tue, 16 Jul 2019 10:49:33 +0000</pubDate>
      <link>https://dev.to/nikomontana/react-ui-lib-experiences-bi2</link>
      <guid>https://dev.to/nikomontana/react-ui-lib-experiences-bi2</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am currently working on an idea and would like to speed up my development. So I am searching a for opinions and experiences with either &lt;code&gt;antd&lt;/code&gt; or &lt;code&gt;materialUI&lt;/code&gt;. &lt;/p&gt;

&lt;p&gt;For my setup I am using NextJS &amp;amp; Styled-Components. Maybe somebody already has experience with this setup and could tell me something about some pitfalls to help me decide between the two!&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

</description>
      <category>react</category>
      <category>nextjs</category>
      <category>styledcomponents</category>
      <category>ui</category>
    </item>
    <item>
      <title>useScrollInfo() Hook</title>
      <dc:creator>Niko Montana</dc:creator>
      <pubDate>Mon, 15 Jul 2019 14:28:34 +0000</pubDate>
      <link>https://dev.to/nikomontana/usescrollinfo-hook-b66</link>
      <guid>https://dev.to/nikomontana/usescrollinfo-hook-b66</guid>
      <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I am searching for a simple solution to detect the scroll direction (and scroll position) within a react functional component. The difficult part for my case is that I am using &lt;code&gt;nextjs&lt;/code&gt; so my react app is a ssr app. I dont have access to &lt;code&gt;window&lt;/code&gt; or &lt;code&gt;document&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>react</category>
      <category>hooks</category>
      <category>scroll</category>
    </item>
    <item>
      <title>Detect if div is inside ViewPort</title>
      <dc:creator>Niko Montana</dc:creator>
      <pubDate>Fri, 05 Jul 2019 17:55:52 +0000</pubDate>
      <link>https://dev.to/nikomontana/detect-if-div-is-inside-viewport-hkd</link>
      <guid>https://dev.to/nikomontana/detect-if-div-is-inside-viewport-hkd</guid>
      <description>&lt;p&gt;I am using NextJS and want to show a Button when the User scrolls to a particular Element. Unfortunately I cannot get it really working.&lt;/p&gt;

&lt;p&gt;I have a &lt;code&gt;Layout&lt;/code&gt; File, which gets shared across all Components.&lt;/p&gt;



&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import Navbar from "./Navbar";
import Footer from "./Footer";

const Layout = props =&amp;gt; {
  return (
    &amp;lt;div&amp;gt;
      &amp;lt;Navbar /&amp;gt;
      {props.children}
      &amp;lt;Footer /&amp;gt;
    &amp;lt;/div&amp;gt;
  );
};

export default Layout;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;I tried to implement &lt;code&gt;onScroll&lt;/code&gt; to the first &lt;code&gt;&amp;lt;div/&amp;gt;&lt;/code&gt;in the Layout file but it does not get triggered.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
