Questions tagged [dvajs]
16 questions
4
votes
1 answer
Create a subdomain like slack does e.g. : https://someteam.slack.com/ in REACT JS
I am trying to implement feature like slack does in react. You all know before logged-in on Slack, the url looks like this https://www.slack.com/ , but once you logged in it change to https://www.team.slack.com/.
So i have my react project with 2…

Ankit Singh
- 43
- 2
- 8
2
votes
3 answers
Robust way to avoid the "Office.js has not fully loaded" error in a ReactJS project
We develop Excel add-ins. From time to time, we observe this Error: Office.js has not fully loaded. Your app must call "Office.onReady()" as part of it's loading sequence (or set the "Office.initialize" function). If your app has this functionality,…

SoftTimur
- 5,630
- 38
- 140
- 292
2
votes
2 answers
How to get the token from response?
I'm relatively new in this environment. I use "Ant design pro 4" with React and Typescript for a new project.
I call successful my IdentityServer 4 for a token for a login. I see my response in my Browser.
But how get the token in my code?
import…

Roland Schumacher
- 23
- 3
2
votes
0 answers
How to use checkbox to achieve multiple selection and single selection?
Through the official documentation of antd we can know how to use the checkbox to complete the switch between multiple selection and single selection.
https://ant.design/components/checkbox/
My question is, if my checkbox data comes from a backend…

vonfly
- 71
- 6
1
vote
1 answer
How do you get the result from action in another action?
I am new to dvajs. I am using React 17,x, Typescript 4.2.3, antd 4.15.0, umi 3.4.7
The problem.
If I navigate to the /s/ page, the code should get some categories from the API and make another request to the server, displaying them on some pages at…

bldg
- 13
- 3
1
vote
1 answer
React When does rendering happen
My project use dvajs(Based on redux and redux-saga), The code below is to send a request after clicking the button, change the status through connect, and then call the ant design component message.error an message.success(Similar to alert) to…

Spring Li
- 33
- 5
1
vote
3 answers
How to access DVA Store in UMI application?
Hi most of the react developers would find dvaJS and umiJS, heaven for state management and application development. Dva is elm based state management tool that use react-redux for state management.
Q: How to access DVA Store in UMI application,…

Charanjit Singh
- 809
- 10
- 23
1
vote
1 answer
How can we create a redux store in DvaJs?
I have a project with umi and dva and I can't create a global store...
My project is based on this template: https://ant.design/docs/react/practical-projects

Sérgio Danilo
- 78
- 4
1
vote
1 answer
Unsubscribing from a subscription in dva
I have a model that will subscribe a websocket to several expensive end points when the user is on particular routes. When the user leaves the route, I want to disconnect the websockets.
The dva api docs say
Notice: if we want to unregister a model…

megawac
- 10,953
- 5
- 40
- 61
0
votes
0 answers
Add i18next to a ReactJS project with dvajs
I have a ReactJS project which uses dva (https://github.com/dvajs/dva, https://dvajs.com/API.html). I'm trying to add i18next to the project by following this youtube video.
But it seems that i18next fails to be plugged into the project. As a…

SoftTimur
- 5,630
- 38
- 140
- 292
0
votes
0 answers
dvajs model namespace or state not saw in props.state or redux devtools
i work on (dvajs+umijs+reactjs) project ,issue in this project is dva model state not saw in my function props or redux devtools, All required or related file below .
src/pages/Model/HomeData.js
export default {
namespace: 'Todo',
state: {
…

praful
- 41
- 8
0
votes
1 answer
How to use tree data in antd nested tables?
I'm trying to put tree data in antd nested tables,but it always renders empty rows when I clicked the expand button.
Can I use tree data in nested tables and how?And why it happened?
code is here

张洲铭
- 3
- 3
0
votes
0 answers
how to prevent a logged in user from going to the login page using antdesign umijs dvajs
I am working on a project using template antdesign pro with umij and dvajs, I will want to know what to do after storing the token in localstorage if I am logged in not to be redirected to the login page
0
votes
2 answers
Where could we put `Office.onReady()` to make sure Office.js could fully load every time
I'm debugging an Excel add-in built in React. Previously, the developer coded the app as if it was a website rather than an Excel add-in, and did not pay attention to Office.js. As a result, when we run it in Excel, we have the famous error Error:…

SoftTimur
- 5,630
- 38
- 140
- 292
0
votes
1 answer
DvaJS - Load saved state from localStorage into state
I initiate my dvajs app like below. Where I store state into localStorage with onStateChange hook. Saving states into localstorage works just fine.
const app = dva({
history: createBrowserHistory(),
defaultState: getPersistedState(),
…

Sisir
- 2,668
- 6
- 47
- 82