Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal_state
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal_state
Merge requests
!40
Add refresh option to getObject
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Add refresh option to getObject
issue/drupal_state-3240885:3240885-force-fetch-option
into
1.0.x
Overview
1
Commits
5
Pipelines
2
Changes
3
Merged
Jay Huskins
requested to merge
issue/drupal_state-3240885:3240885-force-fetch-option
into
1.0.x
2 years ago
Overview
1
Commits
5
Pipelines
2
Changes
3
Expand
Closes
#3240885
0
0
Merge request reports
Viewing commit
6d2cc15d
Prev
Next
Show latest version
3 files
+
19
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
6d2cc15d
Issue
#3240885
: Add docs and an example to main.ts
· 6d2cc15d
Coby Sher
authored
2 years ago
src/main.ts
+
9
−
0
Options
@@ -184,6 +184,15 @@ async function main(): Promise<void> {
})
);
console
.
log
(
'
-- Ignore the store and force fetch data from Drupal --
'
);
console
.
log
(
await
store
.
getObject
({
objectName
:
'
node--recipe
'
,
id
:
'
50c3e7c9-64a9-453c-9289-278132beb4a2
'
,
refresh
:
true
,
})
);
// It is possible to fetch menu data using the jsonapi_menu_items module along with jsonapi_hypermedia
// jsonapi_hypermedia module: https://www.drupal.org/project/jsonapi_hypermedia
// jsonapi_menu_items module: https://www.drupal.org/project/jsonapi_menu_items
Loading