Comments (6)
@rennzhang what type of data are you looking to cache? You can use the storeValue function to save data in the local storage.
from appsmith.
Simply put, I hope that the page switch will not re-render the component. I tried some react-route caching solutions, but it didn't work
For example, page a has a table component. I enter some query conditions and search for data. Then I jump to page b and return to page a. I hope that page a will not be refreshed, that the data will not be retrieved, and that I will keep the query conditions I entered before.
from appsmith.
@rennzhang that is currently not possible
from appsmith.
@Nikhil-Nandagopal Thank you for your answer. I spent a few days understanding the component rendering mechanism of this project, which is indeed very complex. However, I am not familiar with React enough, so I would like to ask about the general reason
from appsmith.
The general reason is that each page is garbage collected after it's navigated away from to ensure that it doesn't consume memory. Appsmith is generally used for live dashboards where data changes and so it makes sense to fetch the data again.
from appsmith.
I fully understand that it makes sense to have him rerender. Too much caching will cause a lot of memory to consume, and maybe the data state of the component is incorrect... But I still want to ask, if I only make modifications to a few components, such as table and list components, so that it retains data when switching pages, or recovers data from cache, is there any feasible way?
I tried to store cached widgetStaticProps here. Judging from the print log, it will initially be applied to the component, but will eventually be overwritten by the original props.
from appsmith.
Related Issues (20)
- [Bug]: `N/A` displayed after creating a new query instead of an appropriate heading
- [Bug]: Not able to scroll to add a new query or see the full list of datasources in split pane view
- [Task]: Create new test user to test sorting workspaces based on recently accessed packages to avoid race condition
- [Task]: Replace usage of class id with test id for section header component tests
- [Bug]: Line break issue on paragraph widget HOT 1
- [Bug]: gsheets should not be shown for airgapped instance
- [Bug]: On switching environment, the Create New Query From list vanishes, and the Create New DS screen comes up
- [Task]: Jest unit test case for #33590
- [Bug]: resetWidget function causes the next async method to be undefined
- [Feature]: Create a widget with multiple canvas area
- [Bug]: Building blocks do not support dropping inside a container within the canvas
- [Task]: Investigate the GAC codebase to find out whereall places Tenant object is getting updated HOT 1
- [Bug]: There appears to be a browser crash everytime when I test WATCH GEOLOCATION via developer tools of the browser.
- [Bug] Linting error for Blob, URL browser APIs
- Task: Change DnD Layer in Anvil to Widget specific layers instead of Layout specific.
- Connect with Raksha to know about the a-force tracking app
- [Task]: Deprecate embedded mock DB
- Make inputs in dark mode bit brighter HOT 1
- [Task]: Move updateSuperUser migration from repetitive migration strategy to bean creation strategy HOT 1
- [Bug]: Auto-Generated Params from URL-based REST Requests Doesn't Interpret HTML encoding
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appsmith.