2 new big malls being built: Central Yards in Central and a new MOKO in Mong Kok. Why does Central Yards have so much more info online?

They even have a website even though the mall is not done.

Meanwhile the new MOKO doesn't even have an official name yet.

The area around Central Yards is plastered with ads for the new mall.

The area around "MOKO2" has nothing about the development.

reddit.com
u/aliassuck — 1 day ago
▲ 0 r/nextjs

What was the issue with react libraries not being able to use context provider when rendering on the server and cannot put data inside module stores either because user session data may leak to other users?

Was that problem ever resolved?

If I want to render on the server, can I still useContext?

reddit.com
u/aliassuck — 1 day ago
▲ 0 r/css

Request: An overflow-x container with children filling viewport by whole units (none cut off) and resizing container shows more children but in whole unit increments and scrolling shows more children, while all children are equally spaced apart.

[1---2---3---4---5]---6---7
[1----2----3----4]----5----6----7
[1---2---3---4]---5---6---7
[1----2----3]----4----5----6----7
[1---2---3]---4---5---6---7
[1--2--3]--4--5--6--7

Brackets are the container being resized.

Elements on the right (outside the brackets) are reachable by scrolling horizontally.

reddit.com
u/aliassuck — 7 days ago
▲ 4 r/vuejs

Is it safe to use early exit OR expressions in templates when it isn't safe in computeds?

Since computeds are said to shadow the second variable since the first one returned early, eg:

// bad
const canShow = computed(() => isSetA.value || isSetB.value);

// good
const canShow = computed(() => {
  const a = isSetA.value;
  const b = isSetB.value;
  return a || b;
});

Do templates suffer the same problem?

<div :class={ canShow: isSetA || isSetB } />
reddit.com
u/aliassuck — 7 days ago
▲ 4 r/vuejs

Do I need to use shallowRef for HTMLImageElement and other DOM nodes?

I've been using ref() and thought Vue was smart to auto conver to shallowRef?

<script setup>
const imgRef = ref<HTMLImageElement>()
onMount(() => {
  const img = imgRef.value;
  // do stuff
});
</script>

<template>
<img ref="imgRef" />
</template>
reddit.com
u/aliassuck — 14 days ago

With celebrity Benedict Wong being known worldwide as just Wong from his Marvel films, he should capitalize on his fame by releasing a fragrance called Wong and Marvel can't sue since Wong is his real name.

reddit.com
u/aliassuck — 18 days ago