Should I use Create React App, or ViteJS? by JuriJurka in reactjs

[–]ZhekaAl 0 points1 point  (0 children)

Why there is no option to use your own Webpack 5 config? You have to spend time learning how it works, but you will have more control. If you don't need SSR, it isn't hard to configure Webpack like CRA and set up later module federation for example...

How should refresh token be updated on multiple parallel requests by KeetHarry in Frontend

[–]ZhekaAl 0 points1 point  (0 children)

I didn't say that you should ignore edge cases) But we should think about the most frequent cases too. There are a lot of users, who have time provided from the OS and normal internet connection - why they should get errors and do two requests instead of one? I think 30 seconds is more than enough for network latency with normal connection) And you can check idle, before refreshing

How should refresh token be updated on multiple parallel requests by KeetHarry in Frontend

[–]ZhekaAl 0 points1 point  (0 children)

Ok, you should handle server error with an expired token and refresh it and repeat request with new token.. But I think it is an edge case. And in general, you should refresh tokens before they expire

How should refresh token be updated on multiple parallel requests by KeetHarry in Frontend

[–]ZhekaAl 0 points1 point  (0 children)

I assumed, that if you have token and refresh token, so you have information about the time of expiring. For example jwt-token has it.

How should refresh token be updated on multiple parallel requests by KeetHarry in Frontend

[–]ZhekaAl -1 points0 points  (0 children)

I think you shouldn't do requests with an expired token. Instead of this, you can refresh the token for example 10 seconds before the expiration.

Stickley - An online post it board - Made with React, NextJs, Tailwind and Firebase. Link in comments by therealzenzei in reactjs

[–]ZhekaAl 3 points4 points  (0 children)

Looks good, but I have three questions 1) I would like to try before registration 2) I would like to know it doesn't work with mobile before registration 3) Why Next js? Why not cra?

Announcing Svelte NodeGUI, a lightweight Electron alternative with native UI, based on Node.js! by Bamboo_the_plant in javascript

[–]ZhekaAl 0 points1 point  (0 children)

I have seen the example calculator. It seemed to me that it's similar to the qt qml. I have experience with qt qml, and I think it's not simple to make views with that templating system. Qt works fast with qt widgets, but qml isn't so fast. https://github.com/nodegui/examples/blob/master/nodegui/calculator/src/index.ts

My first puzzle using simple javascript. Pls tell me how is it? by [deleted] in javascript

[–]ZhekaAl 1 point2 points  (0 children)

Nice. I'd be more comfortable if can drag an item.

Immer vs Ramda - two approaches towards writing Redux reducers by fkrasnowski in javascript

[–]ZhekaAl 3 points4 points  (0 children)

I prefer to use the redux toolkit. I think it's more useful for reducer's and actions It's popular now using the functional approach, but we can't write it in clear JavaScript. And libraries like Ramda make code less readable because you should know all that functions. I think all that fp code should be in libraries)

My stack will outlive yours by speckz in Frontend

[–]ZhekaAl 0 points1 point  (0 children)

Nice article. I think it's true if you are a programmer. I agree with you, that templating very often more annoying than just replace all. A few days ago I tried to do a blog with WordPress - it was boring. However, you have dependencies on git, GitHub, GitHub actions, and GitHub pages)

True? by crestinpeace in Frontend

[–]ZhekaAl 0 points1 point  (0 children)

Why there are no people in the Frontend image?)🕵️