Sobes.tech

What happens when you access a variable before its declaration with var, let, and const?

174

Implement a request function: it calls getData, returns a successful result, and retries the call up to a specified number of attempts, returning the last error after attempts are exhausted.

161

Where did the created hook from Vue 2 disappear in Vue 3 when using setup?

137

What do you usually do before destroying a component in the beforeUnmount/onBeforeUnmount hook?

129

What packages or tools have you used on the frontend for working with Socket.IO/WebSocket?

127

There is an array of seasons. Write a TypeScript type Season that can only accept one of the values of this array.

126

Tell us about a difficult or interesting case from work or code review.

123

How does onMounted differ from created/setup and what is available at the onMounted stage?

114

How to replace v-model with an explicit implementation with the same two-way binding?

114

Implement a non-blocking sleep function that takes a delay in milliseconds.

113

Which option would be more interesting for you: to improve the second project and help the main team or to fully work on your own new project?

113

If the backend data does not match the TypeScript interface, for example, instead of an object, a string is received, will TypeScript highlight this in production and what error will occur?

112

If a heavy two-minute synchronous task is placed in a Promise, will the interface hang?

111

Did you immediately switch to Vue or did you start with other technologies?

105
/2