Comments (2)
Hi @MIDUGA, if your cacheKey generator function starts returning null
for the component for logged users, then this library will avoid caching it. Please see:
Code: https://github.com/walmartlabs/react-ssr-optimization/blob/master/lib/index.js#L159
Test: https://github.com/walmartlabs/react-ssr-optimization/blob/master/test/spec/index.spec.js#L126
You can also look at templatization to cache part of the rendered component that doesn't contain any user specific data, please see: https://github.com/walmartlabs/react-ssr-optimization#how-you-use-component-templatization
from react-ssr-optimization.
Awesome! Thanks!
from react-ssr-optimization.
Related Issues (17)
- Compatibility with Webpack and Babel HOT 3
- difference between electrode-react-ssr-caching? HOT 1
- Cache All Option? HOT 1
- TypeError: Can't add property _instantiateReactComponent, object is not extensible HOT 1
- Cache based on context HOT 2
- Webpack integration HOT 4
- Cached template strings causes issues with escaped strings HOT 1
- React streaming HOT 2
- Module is not working with react and react-dom 16.4.0 HOT 3
- Is react and react-dom required in package.json? HOT 2
- Still Maintained?
- Alternative?
- Not compatible with React 15.* HOT 7
- Template Attrs open to XSS
- Feature Request: Allow environment setting REACT_SSR_OPTIMIZATION_ENV with fallback to NODE_ENV HOT 3
- Wrong images URL in the HTML rendered by the server HOT 2
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 react-ssr-optimization.