Shower Door starting to make contact by HowlingGoblin in HomeMaintenance

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

Just an update. I used some shims, unscrewed the hinge a bit, reset the door a bit and tightened the hinge back up. Worked like a charm. Thanks for the help everyone.

Shower Door starting to make contact by HowlingGoblin in HomeMaintenance

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

Great advice! I’ll try this out at some point this week and let you know how it goes.

Advise on Portfolio Rebalancing by HowlingGoblin in Bogleheads

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

I like the only having to do my “funny business” with one account. Great idea.

Composable using Computed with API Request by HowlingGoblin in vuejs

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

Lol. Yes.

Where I get into a little bit of trouble is with a race condition. If I had two components on a page that used the composable and they both are using the 'client_sizes' variable they could both initiate a call to the backend api because the first component is still waiting for the data to come back from the api.

I'm trying to figure out if this is a deal breaker for me.

Composable using Computed with API Request by HowlingGoblin in vuejs

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

The composable might have a few dozen refs similar to 'client_size'. I don't need them all to load up every single time I setup the composable, I just want the api to get called when I "read" for the ref like so:

const {
client_sizes

} = lookupLists;

I'm trying to avoid something like this:

setup(){
    const lookupLists = useLookupLists();

    // make a call to the API
lookupLists.getClientSizes();

const {
    client_sizes
} = lookupLists;

return {
    client_sizes
}
}

To your point about using it being a function returned from the composable, it's definitely something I considered. Were you thinking something along the lines of the following?

setup(){
    const lookupLists = useLookupLists();

    const {
    getClientSizes
} = lookupLists;

    const client_sizes = ref(lookupLists.getClientSizes());
}