5sControl / 5sControl/5s-frontend

[3h] Новый рабочий после его создания появляется в общем списке рабочих только после обновления страницы

Open Beginner friendly
#883 0 comments 0 reactions 2 assignees Assigned to @ThanhDoIVan View on GitHub
bug
Dominant language
TypeScript
Stars
3
Forks
1
PR merge metrics
No merged PRs in 30d

Description

Я, как админ, создала рабочего - Мария Авсейко, заполнила все поля и нажала кнопку подтверждения.
Вернулась к списку всех работников.
Expected result: новый работник есть в списке
Actual result: нового работника нет в списке.

Обновила страницу списка работников.
Работник появился.

- [x] создание
- [x] редактирование
- [x] удаление

Contributor guide

Open the contributing guide

Research direction

Look at the component that creates a worker and the component that lists workers. The issue is likely that the list is not being re-fetched or updated after a successful creation. Check the API call for creating a worker and the state management (likely React state or a store) for the worker list. After creation, ensure the new worker data is added to the list state or the list is refetched. Verify by creating a worker and checking the network tab and console.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.