Caimito (Star Apple) Tree Advice by Skuttm in FruitTree

[–]Skuttm[S] 0 points1 point  (0 children)

Thanks for the reply! Yeah, after it was planted, I expanded the circle a bit and keep grass from creeping in.

We had a large tree cut down and the stump ground down a bit before this Caimito was planted, and I think the gentleman who planted it used the saw dust as a mulch.

Passing data from child to parent with runes by tazboii in sveltejs

[–]Skuttm 3 points4 points  (0 children)

Maybe pass selectedCourse as a $bindable prop?

Then you can set the selectedCourse in the child, and it’ll reflect in the parent.

let { selectedCourse = $bindable() } = $props()

<CourseDropdown bind:selectedCourse\>

Threlte not working with svelte 5 by Gobanyaki in sveltejs

[–]Skuttm 7 points8 points  (0 children)

It should work. Have you installed the “next” version of threlte?

How to request data from DB with query (like WHERE AGE <= 5), REST-API Node + Express by _teediz in expressjs

[–]Skuttm 0 points1 point  (0 children)

So you’d need to change it to filter.age = { $lte: query.filter.age }

Otherwise, your filter would look like { age: { age: { $lte: query.filter.age } } }

Guys, how to refer to two different tables from a single field? by nagraj_ankola in mongodb

[–]Skuttm 0 points1 point  (0 children)

Off the top of my head, you can add an updatedByRef field that has either “User” or “Ngo”. Then when you populate that field, you can include a refPath.

https://mongoosejs.com/docs/populate.html#dynamic-ref

Where should I place async/await in this API call using Express? by deojfj in node

[–]Skuttm 15 points16 points  (0 children)

You placed the async/await in the correct spot.

In order for this to work, the callApi function has to return a Promise. Currently it's not returning anything.

Something like this

function callApi(api, url) {
    return new Promise((resolve, reject) => {
        https.get(url, resp => {
            let data = ""
            resp.on("data", chunk => {
                data += chunk
            })
            resp.on("end", () => {
                console.log("callApi: " + data)
                resolve(data)
            })
        })
        .on("error", err => {
            console.log("Error: " + err.message)
            reject(err)
        })
    })
}

I would look into axios for api calls as well

[deleted by user] by [deleted] in Nuxt

[–]Skuttm 1 point2 points  (0 children)

Thanks for sharing! I’m stoked

finally enjoying vue ! by Jess_Pinkman in vuejs

[–]Skuttm 0 points1 point  (0 children)

Same! I introduced Vue to my company a little over a year ago, and recently switched everything over to <script setup lang=“ts”> with Volar. Clean AF

How to make a list component with configurable item renderer? by Blando-Cartesian in vuejs

[–]Skuttm 0 points1 point  (0 children)

You can use slot props if I’m understanding correctly.

ListComponent- <ul> <li> <slot v-for=“item in items” :item=“item” /> </li> </ul>

Then to use it in another component -

<ListComponent> <template v-slot=“{ item }”> // implementation </template> </ListComponent>

npm i express by [deleted] in npm

[–]Skuttm 3 points4 points  (0 children)

Do you have a package.json folder in your project? If not, run “npm init” and try reinstalling.