@iankibetsh/vue-streamline 1.1.7 → 1.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/vue-streamline",
3
- "version": "1.1.7",
3
+ "version": "1.1.9",
4
4
  "description": "Vue library for streamlining laravel backend services with @iankibet/streamline composer package",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -102,7 +102,7 @@ const useStreamline = (stream, ...initialArgs) => {
102
102
  };
103
103
 
104
104
  const getActionUrl = (action, ...args) => {
105
- console.log('getActionUrl called with:', action, args);
105
+ // console.log('getActionUrl called with:', action, args);
106
106
  const post = {
107
107
  action,
108
108
  stream,
@@ -114,14 +114,14 @@ const useStreamline = (stream, ...initialArgs) => {
114
114
  const service = reactive({}); // Make the service object reactive
115
115
 
116
116
  onMounted(() => {
117
- if (initialArgs.length > 0) {
118
- fetchServiceProperties();
119
- }
120
117
  if (!enableCache) return;
121
118
  const cachedData = localStorage.getItem(cacheKey);
122
119
  if (cachedData) {
123
120
  assignPropertiesAndMethods(JSON.parse(cachedData));
124
121
  }
122
+ if (initialArgs.length > 0) {
123
+ fetchServiceProperties();
124
+ }
125
125
 
126
126
  });
127
127
 
package/src/main.js CHANGED
@@ -11,7 +11,7 @@ const app = createApp(App)
11
11
  app.use(streamline,{
12
12
  streamlineHeaders,
13
13
  streamlineUrl,
14
- enableCache: false
14
+ enableCache: true
15
15
  })
16
16
 
17
17
  app.mount('#app')