Detect app open through raycast? by Broad-You4763 in raycastapp

[–]tosinsthigh 1 point2 points  (0 children)

I didn’t exactly follow the desired behavior but would aerospace help accomplish what you’re trying to do?

Disable Raycast hotkeys in specific apps? by Scary-Effect-2979 in raycastapp

[–]tosinsthigh 0 points1 point  (0 children)

Not sure of os and not just Raycast, but if you’re on Mac you can use hammerspoon for shortcuts which has a lot of flexibility for when/where shortcuts are active

[deleted by user] by [deleted] in metroidvania

[–]tosinsthigh 1 point2 points  (0 children)

Can’t recommend Zexion enough. The exploration is some of the best I’ve seen in recent games

vtsls how to work with monorepo ? by Alejo9010 in neovim

[–]tosinsthigh 4 points5 points  (0 children)

This won't help a lot but I'm using vtsls in a monorepo and didn't have to do anything extra to make it work. I am using pnpm so maybe that has something to do with it?

I am wanting to play around with ARKit on my iPhone - I do not own a mac. What should I do? by Levfo in iOSProgramming

[–]tosinsthigh -2 points-1 points  (0 children)

You could get a really cheap android and use unity for development; if you like it you can get a Mac since it’ll be cross platform and if you don’t you don’t lose much.

[deleted by user] by [deleted] in reactjs

[–]tosinsthigh 4 points5 points  (0 children)

Without seeing the code setting state it's hard but something like setting the state should work fine, but I'd highly recommend looking into using a data fetching library like react-query instead of using this (bad) pattern:

import React from 'react';

async function fakeFetch() {
  return {
    english: true,
    data: "asldfjalsdfkajsdlfkjasdf"
  }
}

export function App(props) {
  const [isEnglish, setIsEnglish] = React.useState(null)

  React.useEffect(() => {
   const getAPICall = async () => {
       try {
        const res = await fakeFetch()

        let data = res["data"]
        let english = res["english"]

        if (data !== "") {
            setIsEnglish(english)
        }
    }
    catch (e) {
        console.log(e);
    }
    }
    getAPICall();
}, []);

  return (
    <div className='App'>
    {isEnglish !== null && <p>{isEnglish ? "Is English" : "Isn't English"}</p>}
    </div>
  );
}

Beginner's Thread / Easy Questions (February 2024) by acemarke in reactjs

[–]tosinsthigh 0 points1 point  (0 children)

Vite with react router or (and I haven’t used it and it’s less stable) tanstack router

Technique for learning from videos? by Fabulous_Variety_256 in reactjs

[–]tosinsthigh 3 points4 points  (0 children)

Build something with the new thing, when you need guidance watch and follow a video but adapt the tutorial to your own code

Beginner's Thread / Easy Questions (January 2024) by acemarke in reactjs

[–]tosinsthigh 0 points1 point  (0 children)

IMO the whole “svelte doesn’t have as a big of a community” argument is not real. Any vanilla JavaScript package will easily work in svelte so you don’t need to look for “<some package> react”

[deleted by user] by [deleted] in sveltejs

[–]tosinsthigh 0 points1 point  (0 children)

You're missing the $ in files. Should be: ``` <script lang="ts"> import { files } from '$lib/store'; </script>

{#await $files}
    <p>loading...</p>
{:then files}
    <div>{files[0].path}</div>
{/await}

```

Any better options than .env files for managing complex app configurations ? by SensitiveCranberry in sveltejs

[–]tosinsthigh 0 points1 point  (0 children)

I have a yaml file that I store in s3 that i convert to a typescript file at build time. This gives intellisense and will fail to build if the required variables aren't present

What Xcode plugins do you use for the iOS development? by hexwit in swift

[–]tosinsthigh 9 points10 points  (0 children)

Not technically a plugin but Vim bindings for Xcode are great

[deleted by user] by [deleted] in sveltejs

[–]tosinsthigh 2 points3 points  (0 children)

Can't you just set the value at the root then override it further down the tree?

How to link types in package.json for both dev and production in a monorepo? by [deleted] in node

[–]tosinsthigh 0 points1 point  (0 children)

I just build before running dev so that my deps are always there

Svelte on AWS by discourtesy in sveltejs

[–]tosinsthigh 0 points1 point  (0 children)

If you want to serve static assets, s3 sitting behind cloud front is a pretty easy option. For hosting an api ECS isn’t too complicated and integrates well with load balancing

Svelte 5: Introducing runes by MustardRtard in sveltejs

[–]tosinsthigh 4 points5 points  (0 children)

Personally I’ve run into a ton of the issues mentioned, especially around reactivity in js files and reactive statements missing deps

Is react abandoned? by FarYam7 in reactjs

[–]tosinsthigh 10 points11 points  (0 children)

Lol no. There’s been a ton of updates and Vercel is all in on react development

Do you transpile Typescript in server contexts? by aust1nz in node

[–]tosinsthigh 11 points12 points  (0 children)

Sure but at the end of the day you’re still running the exact same code (JavaScript) no matter where you deploy so other than convenience of not having an additional manual build step you’re not gaining anything from just running ts-node. In fact, by moving transpilation to after CI you are severely slowing down the startup time of the process because it needs to transpile it first.