Skip to main content

Questions tagged [mobx]

Functional reactive programming library in JavaScript.

0 votes
0 answers
8 views

Is there a MobX developer debugging tool that can be used in React? [closed]

Is there a MobX devtools that can be used in React? My mobX version is greater than 6, react version is 16. I try mobx-react-devtools and mobx-devtools, but they don't approve mobx@"^6.3.3" ...
Artemis's user avatar
0 votes
0 answers
15 views

Return modified query result from action with multiple queries in MST Store

Below is my scenario that I want achieve in an action in the root store: Call API-1 and get the list Send ids map from the list to API-2 and fetch the data Data from API-2 needs to be mapped to the ...
SHAHBAZ's user avatar
  • 326
0 votes
0 answers
28 views

Flutter - The UI does not change when the value specified with Flutter Observer is updated

I'm developing a movie application with Flutter. Movies are shown on the page called "Movies". These movies are shown in categories. The user selects a category via TabBar and movies ...
Emir Yasin Bolat's user avatar
1 vote
0 answers
19 views

Flutter MobX ObservableList not updating UI when modifying items directly

I'm using MobX in my Flutter app and encountering an issue with updating the UI. I have an ObservableList that I use to render a list of items on the screen. The ObservableList is typed as ...
rafaelpadu's user avatar
  • 1,556
0 votes
1 answer
39 views

Mobx Lazy+Cached

Just on a basic example from the docs class OrderLine { price = 0 amount = 1 constructor(price) { makeAutoObservable(this) this.price = price } get total() { ...
404's user avatar
  • 379
0 votes
1 answer
33 views

Correct Usage of MobX for Managing Comparison State in React Component

I'm a beginner in React and MobX and I'm working on a project where I need to manage the state of compared companies. I want to make sure I'm following best practices and not contradicting the MobX ...
glasswalk's user avatar
0 votes
0 answers
21 views

Mobx will not reorder the component to change the observable variable

Hey, If I change the observabl variable using a function in the provider, the value of this.loaded in the sorter is changed to false, but the component that reads this value is not re-rendering. ...
xttx's user avatar
  • 47
0 votes
0 answers
24 views

Is there a specific way to fetch async data when using React and Mobx?

I'm trying to learn Mobx with React. I have problem to display fetched data. I created store, context, provider and view component. const API_URL = "https://jsonplaceholder.typicode.com/posts&...
I3art0sh's user avatar
0 votes
0 answers
25 views

Webpack mobx stores not reloading

Problem I am using webpack 5, React 18 and MobX stores. With my current configuration of webpack using HMR and ReactRefresh everything seems to be refreshing just fine, however we are using mobx ...
user25521154's user avatar
0 votes
0 answers
20 views

how to test a component that uses state from mobx

when calling the test it gives an error Test suite failed to run createRoot(...): Target container is not a DOM element. 5 | import {App} from "./App"; 6 | > 7 | ...
Антон Богдашов's user avatar
0 votes
0 answers
36 views

Having a problem retrieving data from Spoonacular API

soo im trying to retrieve some data for food items that can be purchased in my app. Ive called the API and i have connected it to my Isar database for local storage but it is not displaying the items ...
Edens Fallen Leaf's user avatar
0 votes
0 answers
21 views

Lit Uncaught ReferenceError: process is not defined when using mobx

I am building frontend web app using lit framework and mobx, lit-mobx for state management. I am getting 'Uncaught ReferenceError: process is not defined' if I try to use observable property from mobx....
Arushi gupta's user avatar
-1 votes
1 answer
68 views

MobX State Tree: get a list of references that are using specific identifier

Well, the question is quite straight-forward. Assume we have some model with identifier const ReferableModel = types.model({ id: types.identifier(), }) and an indefinite number of models that can ...
Limbo's user avatar
  • 2,200
0 votes
1 answer
30 views

How do I need write periodic timer to test connection to the server using Mobx?

I want to write the ReactionBuilder with Mobx, which will check a connection with my server periodicly and do new request to connect it if there is not a connection. How can I do it correctly? I have ...
qucals's user avatar
  • 31
0 votes
0 answers
14 views

MobX mixing autorun() and runInAction() to limit reactions

Suppose I want printSum() to run when observableMain changes, but don't want it to react to observableSesondary. Code below will trigger on both (which is undesirable): @observable observableMain = 0;...
Justin Trevein's user avatar

15 30 50 per page
1
2 3 4 5
128