<?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: dragos</title>
    <description>The latest articles on DEV Community by dragos (@ivkemilioner).</description>
    <link>https://dev.to/ivkemilioner</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%2F250650%2F8dc1d246-d80a-4a66-8ec7-fee987fa91a9.jpg</url>
      <title>DEV Community: dragos</title>
      <link>https://dev.to/ivkemilioner</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ivkemilioner"/>
    <language>en</language>
    <item>
      <title>Most advice around stress assumes you need the right mindset.</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Fri, 16 Jan 2026 16:50:48 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/most-advice-around-stress-assumes-you-need-the-right-mindset-485m</link>
      <guid>https://dev.to/ivkemilioner/most-advice-around-stress-assumes-you-need-the-right-mindset-485m</guid>
      <description>&lt;p&gt;In practice, a lot of stress isn’t cognitive at all.&lt;br&gt;
Your body is just stuck in a heightened state.&lt;/p&gt;

&lt;p&gt;While working on a small iOS app, I focused on slowing things down physically&lt;br&gt;
instead of trying to “fix” thoughts.&lt;/p&gt;

&lt;p&gt;The result is a simple breathing-based tool,&lt;br&gt;
built for moments when calming down feels impossible.&lt;/p&gt;

&lt;p&gt;Project page:&lt;br&gt;
&lt;a href="https://www.breathapp.app/" rel="noopener noreferrer"&gt;https://www.breathapp.app/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No big claims.&lt;br&gt;
Just documenting a quieter approach.&lt;/p&gt;

</description>
    </item>
    <item>
      <title>Shipping a small app forces uncomfortable decisions</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Mon, 12 Jan 2026 13:28:38 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/shipping-a-small-app-forces-uncomfortable-decisions-13if</link>
      <guid>https://dev.to/ivkemilioner/shipping-a-small-app-forces-uncomfortable-decisions-13if</guid>
      <description>&lt;p&gt;Working on a small app has a way of exposing weak decisions very quickly.&lt;/p&gt;

&lt;p&gt;When there’s no team and no long roadmap, every choice feels more permanent.&lt;br&gt;
You can’t hide complexity behind future plans or “we’ll fix it later”.&lt;/p&gt;

&lt;p&gt;The hardest part wasn’t building features.&lt;br&gt;
It was deciding what to leave out and how to explain the idea clearly.&lt;/p&gt;

&lt;p&gt;I’m finishing the launch of a small iOS training app that focuses on practicing&lt;br&gt;
subtle facial cues through short exercises and feedback.&lt;/p&gt;

&lt;p&gt;Project page:&lt;br&gt;
&lt;a href="https://microfacialexpressions.app" rel="noopener noreferrer"&gt;https://microfacialexpressions.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No big conclusions yet.&lt;br&gt;
Just sharing the process and trying to keep things simple.&lt;/p&gt;

</description>
      <category>producthunt</category>
      <category>reactnative</category>
      <category>expo</category>
    </item>
    <item>
      <title>Shipping something small is harder than it looks</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Sun, 11 Jan 2026 13:21:47 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/shipping-something-small-is-harder-than-it-looks-il9</link>
      <guid>https://dev.to/ivkemilioner/shipping-something-small-is-harder-than-it-looks-il9</guid>
      <description>&lt;p&gt;I used to think building the product was the hard part.&lt;/p&gt;

&lt;p&gt;Turns out, shipping it is much harder.&lt;/p&gt;

&lt;p&gt;When you’re working on a small app, there’s no team to hide behind.&lt;br&gt;
No roadmap approved by ten people.&lt;br&gt;
Just a lot of small decisions you have to commit to.&lt;/p&gt;

&lt;p&gt;What surprised me the most was how much time went into things&lt;br&gt;
that aren’t “features” at all:&lt;br&gt;
copy, screenshots, edge cases, onboarding.&lt;/p&gt;

&lt;p&gt;I’m currently finishing the launch of a small mobile app I’ve been&lt;br&gt;
working on for a while.&lt;/p&gt;

&lt;p&gt;Documenting the project here:&lt;br&gt;
&lt;a href="https://vetrecord.app" rel="noopener noreferrer"&gt;https://vetrecord.app&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;No big conclusions yet.&lt;br&gt;
Just a reminder that progress often looks slower from the inside.&lt;/p&gt;

</description>
      <category>expo</category>
      <category>reactnative</category>
      <category>ios</category>
      <category>mobile</category>
    </item>
    <item>
      <title>Two checkboxes in a row, when I check one the other must be unchecked</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Mon, 05 Sep 2022 06:02:09 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/two-checkboxes-in-a-row-when-i-check-one-the-other-must-be-unchecked-2f71</link>
      <guid>https://dev.to/ivkemilioner/two-checkboxes-in-a-row-when-i-check-one-the-other-must-be-unchecked-2f71</guid>
      <description>&lt;p&gt;&lt;a href="https://stackoverflow.com/questions/73605050/two-checkboxes-in-a-row-when-i-check-one-the-other-must-be-unchecked" rel="noopener noreferrer"&gt;https://stackoverflow.com/questions/73605050/two-checkboxes-in-a-row-when-i-check-one-the-other-must-be-unchecked&lt;/a&gt;&lt;/p&gt;

</description>
      <category>help</category>
      <category>aggrid</category>
    </item>
    <item>
      <title>I have an error when I want to save to the redux state. A non-serializable value.</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Mon, 22 Aug 2022 22:31:55 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/i-have-an-error-when-i-want-to-save-to-the-redux-state-a-non-serializable-value-4dli</link>
      <guid>https://dev.to/ivkemilioner/i-have-an-error-when-i-want-to-save-to-the-redux-state-a-non-serializable-value-4dli</guid>
      <description>&lt;p&gt;I have an error when I want to save to the redux state.&lt;/p&gt;

&lt;p&gt;A non-serializable value was detected in action, in the path: payload. picture. Value: FileList {0: File, length: 1}&lt;/p&gt;

&lt;p&gt;Take a look at the logic that dispatched this action: {type: 'books/addToListOfBooks', payload: {…}}&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;input
          type="file"
          {...register('picture', {
            validate: {
              lessThan10MB: (files) =&amp;gt;
                files[0]?.size &amp;lt; 1024 * 1024 || 'Max 1MB',
              acceptedFormats: (files) =&amp;gt; {
                const pictureType = files[0]?.name
                  .toLowerCase()
                  .split('.')
                  .pop()
                return (
                  ['jpeg', 'png', 'gif'].includes(pictureType) ||
                  'Only PNG, JPEG e GIF'
                )
              },
            },
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>help</category>
      <category>react</category>
      <category>redux</category>
      <category>javascript</category>
    </item>
    <item>
      <title>Problem with req. query;</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Tue, 12 Jul 2022 20:18:22 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/problem-with-req-query-24ol</link>
      <guid>https://dev.to/ivkemilioner/problem-with-req-query-24ol</guid>
      <description>&lt;p&gt;I'm trying to pull data from a document containing a logged-in user from the MongoDB database. However, req. query doesn't seem to pass.&lt;/p&gt;

&lt;p&gt;API:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default async function handler(req, res) {
  const client = await clientPromise;
  const db = client.db("USERS");
  const { userName } = req.query;
  switch (req.method) {
  case "POST": {
    const bodyObject = JSON.parse(req.body);
    const query = {
      user: bodyObject.user,
      avatar: bodyObject.avatar,
      level: bodyObject.level,
    };
    const update = { $set: { score: bodyObject.score } };
    const options = { upsert: true };

    const newScore = await db
      .collection("USERS")
      .findOneAndUpdate(query, update, options);

    res.json(newScore);
    break;
  }
  case "GET": {
    const users = await db
      .collection("USERS")
      .find({ user: { $in: [userName] } })
      .toArray();
    res.json(users);
    break;
  }

  default: {
    // do nothing
  }
  }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;COMPONENT:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import styles from '../styles/Elements.module.css';
import clientPromise from '../lib/mongodb';


export default function ScoreHeader({ users }) {
  console.log(users)

  return (
    &amp;lt;div className={styles.containerIndex}&amp;gt;
     fadsfds
    &amp;lt;/div&amp;gt;
  );
}

export async function getServerSideProps({}) {
  const client = await clientPromise;
 const db = client.db('USERS');

  const res = await fetch(`http://localhost:3000/api/usersAPI`, {
    method: 'GET',
    headers: {
      'Content-Type': 'application/json',
    },
  });
  const users = await res.json();

  return {
    props: { users },
  };
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>help</category>
      <category>mongodb</category>
      <category>react</category>
      <category>nextjs</category>
    </item>
    <item>
      <title>How do I retrieve data for a logged user from MongoDb?</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Tue, 12 Jul 2022 07:58:40 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/how-do-i-retrieve-data-for-a-logged-user-from-mongodb-4904</link>
      <guid>https://dev.to/ivkemilioner/how-do-i-retrieve-data-for-a-logged-user-from-mongodb-4904</guid>
      <description>&lt;p&gt;Hello, I want to retrieve data for a logged user from MongoDB. I did not understand the documents. &lt;/p&gt;

</description>
      <category>help</category>
      <category>nextjs</category>
      <category>mongodb</category>
    </item>
    <item>
      <title>Deconstruction to not work</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Mon, 13 Jun 2022 21:32:54 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/deconstruction-to-not-work-23lg</link>
      <guid>https://dev.to/ivkemilioner/deconstruction-to-not-work-23lg</guid>
      <description>&lt;p&gt;Deconstruction to not work&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function QuziLogic({
  currentQuestion, questions, handleAnswerOptionClick, countDownBarWith, totalTime,
}) {
  return (
    &amp;lt;&amp;gt;
      &amp;lt;div className={styles.questionCount}&amp;gt;
        &amp;lt;p className={styles.questionText}&amp;gt;What is the output?&amp;lt;/p&amp;gt;

        &amp;lt;p className={styles.questionText}&amp;gt;
          Question
          {currentQuestion + 1}
          /
          {questions.length}
        &amp;lt;/p&amp;gt;
      &amp;lt;/div&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>help</category>
      <category>react</category>
      <category>javascript</category>
    </item>
    <item>
      <title>I need help. TypeError: Cannot read properties of undefined (reading 'current')</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Sun, 12 Jun 2022 21:14:30 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/i-need-helptypeerror-cannot-read-properties-of-undefined-reading-current-1d8d</link>
      <guid>https://dev.to/ivkemilioner/i-need-helptypeerror-cannot-read-properties-of-undefined-reading-current-1d8d</guid>
      <description>&lt;p&gt;I need help.&lt;/p&gt;

&lt;p&gt;TypeError: Cannot read properties of undefined (reading 'current').&lt;/p&gt;

&lt;p&gt;This is code ⬇️⬇️&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;function QuizLogic(showScore, totalTime, fetchQuestions, loading, currentQuestion, questions, handleAnswerOptionClick, countDownBarWith) {
  const router = useRouter();


  if (loading.current &amp;amp;&amp;amp; showScore) {
    return (
      &amp;lt;button
        onClick={() =&amp;gt; router.push('/SaveComponent')}
        type="button"
      &amp;gt;
        See score
      &amp;lt;/button&amp;gt;
    );
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/dragoslavIvkovic/Test-your-JS-skills---NEXT.JS-REDUX-MONGODB/blob/main/components/QuizLogic.js" rel="noopener noreferrer"&gt;https://github.com/dragoslavIvkovic/Test-your-JS-skills---NEXT.JS-REDUX-MONGODB/blob/main/components/QuizLogic.js&lt;/a&gt;&lt;/p&gt;

</description>
      <category>help</category>
      <category>react</category>
      <category>nextjs</category>
      <category>useref</category>
    </item>
    <item>
      <title>I want to show the names of all but two collections.</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Sun, 05 Jun 2022 09:09:15 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/i-want-to-show-the-names-of-all-but-two-collections-1nb4</link>
      <guid>https://dev.to/ivkemilioner/i-want-to-show-the-names-of-all-but-two-collections-1nb4</guid>
      <description>&lt;p&gt;I want to get all the collections names I have and show them, and I want to skip two collections "middle", and "xxx". How to do that?&lt;/p&gt;

&lt;p&gt;Pice of my code.&lt;br&gt;
await db.listCollections({name:"middle","xxx"} ).toArray();&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>javascript</category>
      <category>help</category>
      <category>react</category>
    </item>
    <item>
      <title>I get err MongoInvalidArgumentError: Collection name must be a String</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Sat, 30 Apr 2022 18:49:49 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/i-get-err-mongoinvalidargumenterror-collection-name-must-be-a-string-44e6</link>
      <guid>https://dev.to/ivkemilioner/i-get-err-mongoinvalidargumenterror-collection-name-must-be-a-string-44e6</guid>
      <description>&lt;p&gt;I get err MongoInvalidArgumentError: Collection name must be a String&lt;/p&gt;

&lt;p&gt;First function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export default function Questions ({data})
 {const [collection, setCollection] = useState("")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Second function:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;export async function getServerSideProps({collection} ) 
{const client = await clientPromise;const db = client.db("javascript_questions");

let data = await db.collection(collection).find({}).toArray();
data = JSON.parse(JSON.stringify(data));
return {props: { data },  };}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>nextjs</category>
      <category>react</category>
      <category>help</category>
    </item>
    <item>
      <title>How to read from db and save user and his score from to monogodb? Any tutorial ?</title>
      <dc:creator>dragos</dc:creator>
      <pubDate>Sat, 30 Apr 2022 09:33:47 +0000</pubDate>
      <link>https://dev.to/ivkemilioner/how-to-read-from-db-and-save-user-and-his-score-from-to-monogodb-any-tutorial--4d9l</link>
      <guid>https://dev.to/ivkemilioner/how-to-read-from-db-and-save-user-and-his-score-from-to-monogodb-any-tutorial--4d9l</guid>
      <description>&lt;p&gt;How to read from db and save user and his score from to monogodb? Any tutorial ?&lt;/p&gt;

&lt;p&gt;This is my project.&lt;br&gt;
&lt;a href="https://github.com/dragoslavIvkovic/next-qa-js" rel="noopener noreferrer"&gt;https://github.com/dragoslavIvkovic/next-qa-js&lt;/a&gt;&lt;/p&gt;

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