You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched this repository's issues and believe that this is not a duplicate.
I'm using ...
React Grid
React Chart
React Scheduler
Current Behaviour
Hello,
I am using the Resources plugin and the AppointmentTooltip. Resources are found when I fetch my appointments. This means that resource's possible values are updated in time and my appointments are using the exact resource's possible values.
So at initialization I get like 20 possible values for the resource, when I click to the next week or next month I can get only 10 possible values (the 20 and the 10 possible values are used). It seems that appointments are rendered before resource is updated and sometimes I get this error :
Expected Behaviour
Update resource before render new fetched appointments?
Steps to Reproduce
In this example users are generated from the appointments in the action.
Reducer:
case SET_APPOINTMENTS:
draft.appointments=action.appointments;draft.users=action.users;draft.loading=false;break;
Component:
const{ appointments, users }=store;
<Schedulerdata={appointments}>
...
<ViewStatecurrentViewName={currentView}onCurrentDateChange={date=>setCurrentDate(date)}// API fetchonCurrentViewNameChange={view=>setCurrentView(view)}// API fetch/>
...
<Resourcesdata={[{fieldName: 'userId',title: 'User',instances: users,// From the store updated when appointments are updated},]}/></Scheduler>
Screenshots
Environment
devextreme-reactive: 2.4.0
react: 16.12.0
browser: Opera GX 66
material-ui: 4.9.3
The text was updated successfully, but these errors were encountered:
This thread has been automatically locked since it is closed and there has not been any recent activity. Please open a new issue for related bugs or feature requests.
lockbot
locked as resolved and limited conversation to collaborators
Mar 10, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm using ...
Current Behaviour
Hello,
I am using the Resources plugin and the AppointmentTooltip. Resources are found when I fetch my appointments. This means that resource's possible values are updated in time and my appointments are using the exact resource's possible values.
So at initialization I get like 20 possible values for the resource, when I click to the next week or next month I can get only 10 possible values (the 20 and the 10 possible values are used). It seems that appointments are rendered before resource is updated and sometimes I get this error :
Expected Behaviour
Update resource before render new fetched appointments?
Steps to Reproduce
In this example users are generated from the appointments in the action.
Reducer:
Component:
Screenshots
Environment
The text was updated successfully, but these errors were encountered: