---
title: "Tarun Sharma (@101beardo) | Hashnode"
description: "React.js Frontend Web Developer | Next.js Specialist. Read the latest articles by Tarun Sharma on Hashnode."
url: "https://hashnode.com/@101beardo"
---

@101beardo

# Tarun Sharma

@101beardo · Bengaluru, India · Joined August 2026

React.js Frontend Web Developer | Next.js Specialist

[Website](https://101beardo.github.io/)

## Comments

[Since the ciphertext round-trips through the browser, the route forwards whatever m.metadata.encrypted the client sends straight to the provider. It is opaque to you, but I would still check it is a string under a size cap, or keep it server-side keyed by message id. That also covers your point about stored chats losing it, because the history and the ciphertext live in one place.](https://hashnode.com/posts/qwen4-max-in-a-react-chat-keep-the-encrypted-reasoning-or-your-history-quietly-loses-it/6afbde314daee8aabee34762/comment/6afdf0f1f742ca7f92adf9e8)

Comment · Article · 4d ago · [Qwen4-Max in a React chat: keep the encrypted reasoning, or your history quietly loses it](https://hashnode.com/posts/qwen4-max-in-a-react-chat-keep-the-encrypted-reasoning-or-your-history-quietly-loses-it/6afbde314daee8aabee34762)

[Worth branching on error.details too, since PostgREST says how many rows it saw: "The result contains 0 rows" points at a missing row or an RLS policy hiding it, while 2 or more rows means a missing unique constraint, and those are different fixes. Also maybeSingle() is the better call when zero rows is a normal outcome, like a profile lookup before the user has saved anything.](https://hashnode.com/posts/supabase-single-pgrst116-cannot-coerce-single-json-object/6afb271adc3680d475285109/comment/6afdf0c924b1265a24594862)

Comment · Article · 4d ago · [Fix Supabase "Cannot coerce the result to a single JSON object" (PGRST116)](https://hashnode.com/posts/supabase-single-pgrst116-cannot-coerce-single-json-object/6afb271adc3680d475285109)

[One gap in the setup: the theme is only applied at load and on your own toggle, so with two tabs open a change in tab A leaves tab B on the old theme. A window "storage" listener that calls initTheme when the key changes fixes that for free, since the event only fires in the other tabs. Also useIsDark could use useSyncExternalStore with that same event, which removes the useEffect.](https://hashnode.com/posts/dark-mode-without-the-flash-one-localstorage-key-one-inline-script-and-a-custom-dom-event/6afbf38c1f0840881b5ab487/comment/6afdf0ab38cef92418f64067)

Comment · Article · 4d ago · [Dark Mode Without the Flash: One localStorage Key, One Inline Script, and a Custom DOM Event](https://hashnode.com/posts/dark-mode-without-the-flash-one-localstorage-key-one-inline-script-and-a-custom-dom-event/6afbf38c1f0840881b5ab487)

[Having mount as the only required method keeps the entry bar low, and an idempotent unmount is a good call. Two things teams usually run into with import map setups: version drift when two pieces externalize the same library at different versions, and one piece failing to mount and blanking the shell. Does the root project give an error boundary or fallback around a failed mount?](https://hashnode.com/posts/turning-the-page-replacing-single-spa-with-collagejs/6af6645586f0f7797790d3aa/comment/6af72eb41eb3c0fde6bafc40)

Comment · Article · Nov 13 · [Turning the Page: Replacing single-spa with CollageJS](https://hashnode.com/posts/turning-the-page-replacing-single-spa-with-collagejs/6af6645586f0f7797790d3aa)

[To your question: asserting on the parsed object is where this kind of drop hides. One more layer that would have caught it is typing the outbound tool with the provider SDK's type instead of reading it through Record<string, unknown>, since the cast erases the shape and the compiler cannot see a missing type or function key. A contract test that validates the serialised body against the published tool JSON schema covers it too.](https://hashnode.com/posts/twelve-green-tests-one-missing-key/6af6fab07163ab7dc34e34b2/comment/6af72e8a6de7ba9a52435126)

Comment · Article · Nov 13 · 1 · [Twelve Green Tests, One Missing Key](https://hashnode.com/posts/twelve-green-tests-one-missing-key/6af6fab07163ab7dc34e34b2)

[Making decide\_expense app-only is the part I liked most. One small catch in the View code: decide() wraps both the server call and shareContextWithModel in the same try. If updateModelContext throws after the decision is already saved, the user sees Could not reach the server, may click again, and then gets an already decided error. Giving the context update its own catch avoids that misleading message.](https://hashnode.com/posts/mcp-apps-when-ai-agents-hand-you-an-interface-not-just-text/6af701b74a54c6faf91a4d32/comment/6af72e5d6de7ba9a52434e06)

Comment · Article · Nov 13 · [MCP Apps: When AI Agents Hand You an Interface, Not Just Text](https://hashnode.com/posts/mcp-apps-when-ai-agents-hand-you-an-interface-not-just-text/6af701b74a54c6faf91a4d32)

[The third argument of useSyncExternalStore as the server snapshot is a neat way to avoid pulling in a router for the prerender. One thing to double check is hydration: since that snapshot is also used while hydrating, the client should only hydrate the prerendered /classic markup, and mount the 3D route with a plain createRoot because its root is empty. Otherwise a hard load on another path can briefly render the Classic view first.](https://hashnode.com/posts/seo-for-a-react-spa-without-next-js-and-without-giving-up-the-3d-homepage/6aed656b2bd71b0c43af1e1e/comment/6af47b97852156dd7695a854)

Comment · Article · Nov 11 · [SEO for a React SPA without Next.js, and without giving up the 3D homepage](https://hashnode.com/posts/seo-for-a-react-spa-without-next-js-and-without-giving-up-the-3d-homepage/6aed656b2bd71b0c43af1e1e)

[For the spotlight, one thing to check is which pointer query you use. (pointer: fine) reflects the primary input, so a touch laptop or a tablet with a mouse attached can report differently than you expect. If the overlay should only run when a real cursor exists, (hover: hover) and (pointer: fine) together, or any-pointer: fine, is the safer condition.](https://hashnode.com/posts/react-418-hydration-matchmedia/6af3b009c068f38b85719849/comment/6af47b7fba1be5c29ce20b4e)

Comment · Article · Nov 11 · [React error #418: fixing a matchMedia hydration mismatch with useSyncExternalStore](https://hashnode.com/posts/react-418-hydration-matchmedia/6af3b009c068f38b85719849)

[The Play App Signing fingerprint point is a good one, that mismatch is easy to miss because the app links just fall back to the browser silently. On the offline gap with the live-URL model, a service worker that caches the app shell and serves stale API reads for quotes and invoices would keep it usable without bundling. It is also worth checking whether the server errorPath option in the Capacitor config can show a local offline page when the URL fails to load.](https://hashnode.com/posts/what-we-learned-shipping-a-next-js-web-app/6af38db512345a5582f26c43/comment/6af47b56852156dd7695a5b7)

Comment · Article · Nov 11 · [What we learned shipping a Next.js web app as a native Android app with Capacitor](https://hashnode.com/posts/what-we-learned-shipping-a-next-js-web-app/6af38db512345a5582f26c43)

[The curl with a Googlebot user agent check is a good habit, it catches this before any audit tool does. For the tracker itself, one option is to skip useSearchParams and read window.location.search inside the effect, since it only runs in the browser anyway. Then there is no Suspense requirement and nothing near the layout to get wrong.](https://hashnode.com/posts/google-saw-1-word-on-my-next-js-homepage-a-suspense-boundary-was-hiding-everything-else/6aeb32e0756ad89293d59568/comment/6aedf73dc80ce90c45a1de84)

Comment · Article · Nov 6 · [Google saw 1 word on my Next.js homepage. A Suspense boundary was hiding everything else.](https://hashnode.com/posts/google-saw-1-word-on-my-next-js-homepage-a-suspense-boundary-was-hiding-everything-else/6aeb32e0756ad89293d59568)
